diff options
| author | Arnd Bergmann <[email protected]> | 2021-06-03 19:06:09 +0100 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2021-06-09 18:31:03 +0100 |
| commit | 770494a785a521452a5605606b5a156340d50c9d (patch) | |
| tree | 3682a8cb4ba84082314ca5fd5d5623c0b921675e /tools/perf/scripts/python | |
| parent | d0ce3d5cf77d3866436e86cabe06dd9710c9cc77 (diff) | |
iio: si1133: fix format string warnings
clang complains about multiple instances of printing an integer
using the %hhx format string:
drivers/iio/light/si1133.c:982:4: error: format specifies type 'unsigned char' but the argument has type 'unsigned int' [-Werror,-Wformat]
part_id, rev_id, mfr_id);
^~~~~~~
Print them as a normal integer instead, leaving the "#02"
length modifier.
Use the 0x02x form as the length specifier when used with # includes
the 0x prefix and is very unlikely to be what was intended by the author.
Fixes: e01e7eaf37d8 ("iio: light: introduce si1133")
Signed-off-by: Arnd Bergmann <[email protected]>
Cc: Nathan Chancellor <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions