OSDN Git Service

fm10k: prefer %s and __func__ for diagnostic prints
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 11 Aug 2017 18:14:37 +0000 (11:14 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 3 Oct 2017 15:55:20 +0000 (08:55 -0700)
commit87be98927eb0bfa5484dfbe5ba2f6b7f91dd9187
treebb474f8b49d518bd0a9339349db07088cbb1827d
parentc0ad8ef3df091ef179d78dccb810024612dcfa44
fm10k: prefer %s and __func__ for diagnostic prints

Don't hard code the function names in the diagnostic output when these
reset related routines fail. Instead, use %s and __func__ so that future
refactors don't need to change the print outs.

Additionally, while we are here, add missing function header comments
for the new reset_prepare and reset_done function handlers.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_pci.c