iwlwifi: pnvm: print out the version properly
authorJohannes Berg <johannes.berg@intel.com>
Sun, 17 Oct 2021 13:59:54 +0000 (16:59 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 22 Oct 2021 07:54:18 +0000 (10:54 +0300)
The version really is a git sha1, not a hex number, so we
need to print it out with leading zeroes (8 digits) and
without 0x prefix.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211017165728.83422182774a.I40703fd517534133eb67d644ee16532ba8a67e35@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/pnvm.c

index 069fcbc46d2ba705e80c093407f4d34577322f74..7d4aa398729a189ce58f5633b23d2315a9be2e45 100644 (file)
@@ -162,7 +162,7 @@ done:
                goto out;
        }
 
-       IWL_INFO(trans, "loaded PNVM version 0x%0x\n", sha1);
+       IWL_INFO(trans, "loaded PNVM version %08x\n", sha1);
 
        ret = iwl_trans_set_pnvm(trans, pnvm_data, size);
 out: