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
Unified · Split
| @@ -464,6 +464,10 @@ static inline const char *iavf_state_str(enum iavf_state_t state) · 463 unmodified lines | |||
| 464 | return "__IAVF_INIT_VERSION_CHECK"; | 464 | return "__IAVF_INIT_VERSION_CHECK"; |
| 465 | case __IAVF_INIT_GET_RESOURCES: | 465 | case __IAVF_INIT_GET_RESOURCES: |
| 466 | return "__IAVF_INIT_GET_RESOURCES"; | 466 | 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"; | ||
| 467 | case __IAVF_INIT_SW: | 471 | case __IAVF_INIT_SW: |
| 468 | return "__IAVF_INIT_SW"; | 472 | return "__IAVF_INIT_SW"; |
| 469 | case __IAVF_INIT_FAILED: | 473 | case __IAVF_INIT_FAILED: |