diff options
author | 2023-12-04 15:13:35 +0100 | |
---|---|---|
committer | 2024-01-02 09:33:19 +0100 | |
commit | 9da39ef332c417ce52732564c1c682a6e1209302 (patch) | |
tree | 05c41f7154a8c60426e960ad8be46cc0155d430d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dt-bindings: thermal: qcom-spmi-adc-tm5/hc: Clean up examples (diff) | |
download | wireguard-linux-9da39ef332c417ce52732564c1c682a6e1209302.tar.xz wireguard-linux-9da39ef332c417ce52732564c1c682a6e1209302.zip |
tools/thermal/tmon: Fix compilation warning for wrong format
The following warnings are shown during compilation:
tui.c: In function 'show_cooling_device':
tui.c:216:40: warning: format '%d' expects argument of type 'int', but
argument 7 has type 'long unsigned int' [-Wformat=]
216 | "%02d %12.12s%6d %6d",
| ~~^
| |
| int
| %6ld
......
219 | ptdata.cdi[j].cur_state,
| ~~~~~~~~~~~~~~~~~~~~~~~
| |
| long unsigned int
tui.c:216:44: warning: format '%d' expects argument of type 'int', but
argument 8 has type 'long unsigned int' [-Wformat=]
216 | "%02d %12.12s%6d %6d",
| ~~^
| |
| int
| %6ld
......
220 | ptdata.cdi[j].max_state);
| ~~~~~~~~~~~~~~~~~~~~~~~
| |
| long unsigned int
To fix this, the correct string format must be used for printing.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20231204141335.2798194-1-fe@dev.tdt.de
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions