Skip to content

Commit e4457a4

Browse files
rddunlapKalle Valo
authored andcommitted
iwlwifi: fix printk format warnings in uefi.c
The kernel test robot reports printk format warnings in uefi.c, so correct them. ../drivers/net/wireless/intel/iwlwifi/fw/uefi.c: In function 'iwl_uefi_get_pnvm': ../drivers/net/wireless/intel/iwlwifi/fw/uefi.c:52:30: warning: format '%zd' expects argument of type 'signed size_t', but argument 7 has type 'long unsigned int' [-Wformat=] 52 | "PNVM UEFI variable not found %d (len %zd)\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 53 | err, package_size); | ~~~~~~~~~~~~ | | | long unsigned int ../drivers/net/wireless/intel/iwlwifi/fw/uefi.c:59:29: warning: format '%zd' expects argument of type 'signed size_t', but argument 6 has type 'long unsigned int' [-Wformat=] 59 | IWL_DEBUG_FW(trans, "Read PNVM from UEFI with size %zd\n", package_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ | | | long unsigned int Fixes: 84c3c99 ("iwlwifi: move UEFI code to a separate file") Signed-off-by: Randy Dunlap <[email protected]> Reported-by: kernel test robot <[email protected]> Cc: Kalle Valo <[email protected]> Cc: Luca Coelho <[email protected]> Cc: [email protected] Cc: "David S. Miller" <[email protected]> Cc: Jakub Kicinski <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 45010c0 commit e4457a4

File tree

1 file changed

+2
-2
lines changed
  • drivers/net/wireless/intel/iwlwifi/fw

1 file changed

+2
-2
lines changed

drivers/net/wireless/intel/iwlwifi/fw/uefi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ void *iwl_uefi_get_pnvm(struct iwl_trans *trans, size_t *len)
4949
err = efivar_entry_get(pnvm_efivar, NULL, &package_size, data);
5050
if (err) {
5151
IWL_DEBUG_FW(trans,
52-
"PNVM UEFI variable not found %d (len %zd)\n",
52+
"PNVM UEFI variable not found %d (len %lu)\n",
5353
err, package_size);
5454
kfree(data);
5555
data = ERR_PTR(err);
5656
goto out;
5757
}
5858

59-
IWL_DEBUG_FW(trans, "Read PNVM from UEFI with size %zd\n", package_size);
59+
IWL_DEBUG_FW(trans, "Read PNVM from UEFI with size %lu\n", package_size);
6060
*len = package_size;
6161

6262
out:

0 commit comments

Comments
 (0)