Skip to content

Commit

Permalink
[media] wl128x: fix fmdbg compiler warning
Browse files Browse the repository at this point in the history
fmdrv_common.c: In function 'fm_download_firmware':
fmdrv_common.c:1259:2: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=]
   fmdbg("Firmware(%s) length : %d bytes\n", fw_name, fw_entry->size);
   ^

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Oct 24, 2014
1 parent 607ec6a commit 1a5cfd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/radio/wl128x/fmdrv_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ static int fm_download_firmware(struct fmdev *fmdev, const u8 *fw_name)
fmerr("Unable to read firmware(%s) content\n", fw_name);
return ret;
}
fmdbg("Firmware(%s) length : %d bytes\n", fw_name, fw_entry->size);
fmdbg("Firmware(%s) length : %zu bytes\n", fw_name, fw_entry->size);

fw_data = (void *)fw_entry->data;
fw_len = fw_entry->size;
Expand Down

0 comments on commit 1a5cfd0

Please sign in to comment.