net/ice/base: use macro instead of function name
use __func__ instead of function name in ice_debug calls. Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com> Signed-off-by: Qi Zhang <qi.z.zhang@intel.com> Acked-by: Qiming Yang <qiming.yang@intel.com>
This commit is contained in:
parent
d935fb5bb0
commit
5c5331775d
@ -42,7 +42,7 @@ static enum ice_status ice_set_mac_type(struct ice_hw *hw)
|
|||||||
{
|
{
|
||||||
enum ice_status status = ICE_SUCCESS;
|
enum ice_status status = ICE_SUCCESS;
|
||||||
|
|
||||||
ice_debug(hw, ICE_DBG_TRACE, "ice_set_mac_type\n");
|
ice_debug(hw, ICE_DBG_TRACE, "%s\n", __func__);
|
||||||
|
|
||||||
if (hw->vendor_id == ICE_INTEL_VENDOR_ID) {
|
if (hw->vendor_id == ICE_INTEL_VENDOR_ID) {
|
||||||
switch (hw->device_id) {
|
switch (hw->device_id) {
|
||||||
|
@ -722,7 +722,7 @@ static void ice_shutdown_ctrlq(struct ice_hw *hw, enum ice_ctl_q q_type)
|
|||||||
*/
|
*/
|
||||||
void ice_shutdown_all_ctrlq(struct ice_hw *hw)
|
void ice_shutdown_all_ctrlq(struct ice_hw *hw)
|
||||||
{
|
{
|
||||||
ice_debug(hw, ICE_DBG_TRACE, "ice_shutdown_all_ctrlq\n");
|
ice_debug(hw, ICE_DBG_TRACE, "%s\n", __func__);
|
||||||
/* Shutdown FW admin queue */
|
/* Shutdown FW admin queue */
|
||||||
ice_shutdown_ctrlq(hw, ICE_CTL_Q_ADMIN);
|
ice_shutdown_ctrlq(hw, ICE_CTL_Q_ADMIN);
|
||||||
/* Shutdown PF-VF Mailbox */
|
/* Shutdown PF-VF Mailbox */
|
||||||
|
@ -706,7 +706,7 @@ ice_acquire_global_cfg_lock(struct ice_hw *hw,
|
|||||||
{
|
{
|
||||||
enum ice_status status;
|
enum ice_status status;
|
||||||
|
|
||||||
ice_debug(hw, ICE_DBG_TRACE, "ice_acquire_global_cfg_lock");
|
ice_debug(hw, ICE_DBG_TRACE, "%s\n", __func__);
|
||||||
|
|
||||||
status = ice_acquire_res(hw, ICE_GLOBAL_CFG_LOCK_RES_ID, access,
|
status = ice_acquire_res(hw, ICE_GLOBAL_CFG_LOCK_RES_ID, access,
|
||||||
ICE_GLOBAL_CFG_LOCK_TIMEOUT);
|
ICE_GLOBAL_CFG_LOCK_TIMEOUT);
|
||||||
@ -739,7 +739,7 @@ static void ice_release_global_cfg_lock(struct ice_hw *hw)
|
|||||||
enum ice_status
|
enum ice_status
|
||||||
ice_acquire_change_lock(struct ice_hw *hw, enum ice_aq_res_access_type access)
|
ice_acquire_change_lock(struct ice_hw *hw, enum ice_aq_res_access_type access)
|
||||||
{
|
{
|
||||||
ice_debug(hw, ICE_DBG_TRACE, "ice_acquire_change_lock");
|
ice_debug(hw, ICE_DBG_TRACE, "%s\n", __func__);
|
||||||
|
|
||||||
return ice_acquire_res(hw, ICE_CHANGE_LOCK_RES_ID, access,
|
return ice_acquire_res(hw, ICE_CHANGE_LOCK_RES_ID, access,
|
||||||
ICE_CHANGE_LOCK_TIMEOUT);
|
ICE_CHANGE_LOCK_TIMEOUT);
|
||||||
@ -753,7 +753,7 @@ ice_acquire_change_lock(struct ice_hw *hw, enum ice_aq_res_access_type access)
|
|||||||
*/
|
*/
|
||||||
void ice_release_change_lock(struct ice_hw *hw)
|
void ice_release_change_lock(struct ice_hw *hw)
|
||||||
{
|
{
|
||||||
ice_debug(hw, ICE_DBG_TRACE, "ice_release_change_lock");
|
ice_debug(hw, ICE_DBG_TRACE, "%s\n", __func__);
|
||||||
|
|
||||||
ice_release_res(hw, ICE_CHANGE_LOCK_RES_ID);
|
ice_release_res(hw, ICE_CHANGE_LOCK_RES_ID);
|
||||||
}
|
}
|
||||||
@ -779,7 +779,7 @@ ice_aq_download_pkg(struct ice_hw *hw, struct ice_buf_hdr *pkg_buf,
|
|||||||
struct ice_aq_desc desc;
|
struct ice_aq_desc desc;
|
||||||
enum ice_status status;
|
enum ice_status status;
|
||||||
|
|
||||||
ice_debug(hw, ICE_DBG_TRACE, "ice_aq_download_pkg");
|
ice_debug(hw, ICE_DBG_TRACE, "%s\n", __func__);
|
||||||
|
|
||||||
if (error_offset)
|
if (error_offset)
|
||||||
*error_offset = 0;
|
*error_offset = 0;
|
||||||
@ -830,7 +830,7 @@ ice_aq_update_pkg(struct ice_hw *hw, struct ice_buf_hdr *pkg_buf, u16 buf_size,
|
|||||||
struct ice_aq_desc desc;
|
struct ice_aq_desc desc;
|
||||||
enum ice_status status;
|
enum ice_status status;
|
||||||
|
|
||||||
ice_debug(hw, ICE_DBG_TRACE, "ice_aq_update_pkg");
|
ice_debug(hw, ICE_DBG_TRACE, "%s\n", __func__);
|
||||||
|
|
||||||
if (error_offset)
|
if (error_offset)
|
||||||
*error_offset = 0;
|
*error_offset = 0;
|
||||||
@ -1018,7 +1018,7 @@ ice_aq_get_pkg_info_list(struct ice_hw *hw,
|
|||||||
{
|
{
|
||||||
struct ice_aq_desc desc;
|
struct ice_aq_desc desc;
|
||||||
|
|
||||||
ice_debug(hw, ICE_DBG_TRACE, "ice_aq_get_pkg_info_list");
|
ice_debug(hw, ICE_DBG_TRACE, "%s\n", __func__);
|
||||||
ice_fill_dflt_direct_cmd_desc(&desc, ice_aqc_opc_get_pkg_info_list);
|
ice_fill_dflt_direct_cmd_desc(&desc, ice_aqc_opc_get_pkg_info_list);
|
||||||
|
|
||||||
return ice_aq_send_cmd(hw, &desc, pkg_info, buf_size, cd);
|
return ice_aq_send_cmd(hw, &desc, pkg_info, buf_size, cd);
|
||||||
|
@ -202,7 +202,7 @@ read_nvm_buf_aq_exit:
|
|||||||
static enum ice_status
|
static enum ice_status
|
||||||
ice_acquire_nvm(struct ice_hw *hw, enum ice_aq_res_access_type access)
|
ice_acquire_nvm(struct ice_hw *hw, enum ice_aq_res_access_type access)
|
||||||
{
|
{
|
||||||
ice_debug(hw, ICE_DBG_TRACE, "ice_acquire_nvm\n");
|
ice_debug(hw, ICE_DBG_TRACE, "%s\n", __func__);
|
||||||
|
|
||||||
if (hw->nvm.blank_nvm_mode)
|
if (hw->nvm.blank_nvm_mode)
|
||||||
return ICE_SUCCESS;
|
return ICE_SUCCESS;
|
||||||
@ -218,7 +218,7 @@ ice_acquire_nvm(struct ice_hw *hw, enum ice_aq_res_access_type access)
|
|||||||
*/
|
*/
|
||||||
static void ice_release_nvm(struct ice_hw *hw)
|
static void ice_release_nvm(struct ice_hw *hw)
|
||||||
{
|
{
|
||||||
ice_debug(hw, ICE_DBG_TRACE, "ice_release_nvm\n");
|
ice_debug(hw, ICE_DBG_TRACE, "%s\n", __func__);
|
||||||
|
|
||||||
if (hw->nvm.blank_nvm_mode)
|
if (hw->nvm.blank_nvm_mode)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user