mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
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: kernel test robot <lkp@intel.com> Signed-off-by: Mauro Dreissig <mukadr@gmail.com> Link: https://lore.kernel.org/r/20200705143552.9368-6-mukadr@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f1a4423ffa
commit
a3232e64b4
1 changed files with 2 additions and 2 deletions
|
@ -68,8 +68,8 @@ MODULE_FIRMWARE("rtlwifi/rtl8712u.bin");
|
||||||
static u32 rtl871x_open_fw(struct _adapter *adapter, const u8 **mappedfw)
|
static u32 rtl871x_open_fw(struct _adapter *adapter, const u8 **mappedfw)
|
||||||
{
|
{
|
||||||
if (adapter->fw->size > 200000) {
|
if (adapter->fw->size > 200000) {
|
||||||
dev_err(&adapter->pnetdev->dev, "r8172u: Badfw->size of %d\n",
|
dev_err(&adapter->pnetdev->dev, "r8712u: Bad fw->size of %zu\n",
|
||||||
(int)adapter->fw->size);
|
adapter->fw->size);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
*mappedfw = adapter->fw->data;
|
*mappedfw = adapter->fw->data;
|
||||||
|
|
Loading…
Reference in a new issue