diff options
| author | Michal Swiatkowski <michal.swiatkowski@linux.intel.com> | 2025-08-12 06:23:26 +0200 |
|---|---|---|
| committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2025-09-11 12:09:34 -0700 |
| commit | 4773761949dec7d47633b624e3c9e4cf0a1af9e8 (patch) | |
| tree | aa68511f3142250bbe58c972efb15c2cb74525cd /drivers/net/ethernet/intel/ice/ice_debugfs.c | |
| parent | daf82b61ba0996bb270eba65d7e284d4e5ecaa60 (diff) | |
ice: add pdev into fwlog structure and use it for logging
Prepare the code to be moved to the library. ice_debug() won't be there
so switch to dev_dbg().
Add struct pdev pointer in fwlog to track on which pdev the fwlog was
created.
Switch the dev passed in dev_warn() to the one stored in fwlog.
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_debugfs.c')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice_debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_debugfs.c b/drivers/net/ethernet/intel/ice/ice_debugfs.c index dbcc0cb438aa..1e036bc128c5 100644 --- a/drivers/net/ethernet/intel/ice/ice_debugfs.c +++ b/drivers/net/ethernet/intel/ice/ice_debugfs.c @@ -450,7 +450,7 @@ ice_debugfs_log_size_write(struct file *filp, const char __user *buf, } /* free all the buffers and the tracking info and resize */ - ice_fwlog_realloc_rings(hw, &hw->fwlog, index); + ice_fwlog_realloc_rings(&hw->fwlog, index); /* if we get here, nothing went wrong; return count since we didn't * really write anything |