Skip to content

Commit

Permalink
iwlwifi: fix ARCH=i386 compilation warnings
Browse files Browse the repository at this point in the history
An unsigned long variable should rely on '%lu' format strings, not '%zd'

Fixes: a1a6a4c ("iwlwifi: pnvm: implement reading PNVM from UEFI")
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210302011640.1276636-1-pierre-louis.bossart@linux.intel.com
  • Loading branch information
Pierre-Louis Bossart authored and Kalle Valo committed Mar 3, 2021
1 parent a22549f commit 436b265
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/intel/iwlwifi/fw/pnvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,12 @@ static int iwl_pnvm_get_from_efi(struct iwl_trans *trans,
err = efivar_entry_get(pnvm_efivar, NULL, &package_size, package);
if (err) {
IWL_DEBUG_FW(trans,
"PNVM UEFI variable not found %d (len %zd)\n",
"PNVM UEFI variable not found %d (len %lu)\n",
err, package_size);
goto out;
}

IWL_DEBUG_FW(trans, "Read PNVM fro UEFI with size %zd\n", package_size);
IWL_DEBUG_FW(trans, "Read PNVM fro UEFI with size %lu\n", package_size);

*data = kmemdup(package->data, *len, GFP_KERNEL);
if (!*data)
Expand Down

0 comments on commit 436b265

Please sign in to comment.