iavf: Replace __FUNCTION__ with __func__
authorye xingchen <ye.xingchen@zte.com.cn>
Tue, 18 Oct 2022 01:52:04 +0000 (01:52 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 2 Nov 2022 16:37:11 +0000 (09:37 -0700)
__FUNCTION__ exists only for backwards compatibility reasons with old
gcc versions. Replace it with __func__.

Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/iavf/iavf_main.c

index 3fc5723..efa2692 100644 (file)
@@ -4820,7 +4820,7 @@ static void iavf_shutdown(struct pci_dev *pdev)
                iavf_close(netdev);
 
        if (iavf_lock_timeout(&adapter->crit_lock, 5000))
-               dev_warn(&adapter->pdev->dev, "failed to acquire crit_lock in %s\n", __FUNCTION__);
+               dev_warn(&adapter->pdev->dev, "%s: failed to acquire crit_lock\n", __func__);
        /* Prevent the watchdog from running. */
        iavf_change_state(adapter, __IAVF_REMOVE);
        adapter->aq_required = 0;