Commit a3232e64 authored by Mauro Dreissig's avatar Mauro Dreissig Committed by Greg Kroah-Hartman

staging: rtl8712: Use proper format in call to dev_err()

In the call to dev_err(), remove the cast of size_t to int
and change the format string accordingly.

As reported by the kernel test robot, the correct
format string for a size_t argument should be %zu.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarMauro Dreissig <mukadr@gmail.com>
Link: https://lore.kernel.org/r/20200705143552.9368-6-mukadr@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f1a4423f
......@@ -68,8 +68,8 @@ MODULE_FIRMWARE("rtlwifi/rtl8712u.bin");
static u32 rtl871x_open_fw(struct _adapter *adapter, const u8 **mappedfw)
{
if (adapter->fw->size > 200000) {
dev_err(&adapter->pnetdev->dev, "r8172u: Badfw->size of %d\n",
(int)adapter->fw->size);
dev_err(&adapter->pnetdev->dev, "r8712u: Bad fw->size of %zu\n",
adapter->fw->size);
return 0;
}
*mappedfw = adapter->fw->data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment