Skip to content

Commit d8fa2fd

Browse files
Kaaameanguy11
authored andcommitted
iavf: Fix missing state logs
Fix debug prints, by adding missing state prints. Extend iavf_state_str by strings for __IAVF_INIT_EXTENDED_CAPS and __IAVF_INIT_CONFIG_ADAPTER. Without this patch, when enabling debug prints for iavf.h, user will see: iavf 0000:06:0e.0: state transition from:__IAVF_INIT_GET_RESOURCES to:__IAVF_UNKNOWN_STATE iavf 0000:06:0e.0: state transition from:__IAVF_UNKNOWN_STATE to:__IAVF_UNKNOWN_STATE Fixes: 605ca7c ("iavf: Fix kernel BUG in free_msi_irqs") Signed-off-by: Przemyslaw Patynowski <[email protected]> Signed-off-by: Jun Zhang <[email protected]> Tested-by: Konrad Jankowski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent a9f49e0 commit d8fa2fd

File tree

1 file changed

+4
-0
lines changed
  • drivers/net/ethernet/intel/iavf

1 file changed

+4
-0
lines changed

drivers/net/ethernet/intel/iavf/iavf.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,10 @@ static inline const char *iavf_state_str(enum iavf_state_t state)
464464
return "__IAVF_INIT_VERSION_CHECK";
465465
case __IAVF_INIT_GET_RESOURCES:
466466
return "__IAVF_INIT_GET_RESOURCES";
467+
case __IAVF_INIT_EXTENDED_CAPS:
468+
return "__IAVF_INIT_EXTENDED_CAPS";
469+
case __IAVF_INIT_CONFIG_ADAPTER:
470+
return "__IAVF_INIT_CONFIG_ADAPTER";
467471
case __IAVF_INIT_SW:
468472
return "__IAVF_INIT_SW";
469473
case __IAVF_INIT_FAILED:

0 commit comments

Comments
 (0)