diff options
author | Nicolas Iooss <nicolas.iooss_linux@m4x.org> | 2016-12-22 11:09:10 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-01-02 13:16:32 +0100 |
commit | 5299a92a3b98b91b7230662b8b9b6c64bcf8cae6 (patch) | |
tree | 4abcfd66fc68fdd5e1f528dc97b0ee4ab39e1243 /drivers/hid/hid-picolcd_cir.c | |
parent | HID: intel-ish-hid: add printf attribute to print_log() (diff) | |
download | linux-5299a92a3b98b91b7230662b8b9b6c64bcf8cae6.tar.xz linux-5299a92a3b98b91b7230662b8b9b6c64bcf8cae6.zip |
HID: intel-ish-hid: format 32-bit integers with %X
In ishtp_hid_probe(), use %04X instead of %04hX to format __u32 values,
in order to silent a format error reported by clang:
drivers/hid/intel-ish-hid/ishtp-hid.c:212:3: error: format specifies
type 'unsigned short' but the argument has type '__u32' (aka
'unsigned int') [-Werror,-Wformat]
hid->vendor, hid->product);
^~~~~~~~~~~
drivers/hid/intel-ish-hid/ishtp-hid.c:212:16: error: format
specifies type 'unsigned short' but the argument has type '__u32'
(aka 'unsigned int') [-Werror,-Wformat]
hid->vendor, hid->product);
^~~~~~~~~~~~
Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-picolcd_cir.c')
0 files changed, 0 insertions, 0 deletions