diff options
| author | Anders Roxell <[email protected]> | 2018-02-21 22:33:34 +0100 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2018-03-01 15:26:58 +0100 |
| commit | 03fd11b0336239b7c8c5dac07cef3a71fe33b16b (patch) | |
| tree | 52f57b44c1df093106d55df9715325ea01119347 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | b995ff3b3017073f5251be9d525b3741e631c30f (diff) | |
tools/gpio/gpio-event-mon: fix warning
PRIu64 is defined in user space to match libc's uint64_t definition.
However, gpioevent_data structure in the kernel is defined using the
kernel's own __u64 type.
gpio-event-mon.c: In function ‘monitor_device’:
gpio-event-mon.c:102:19: warning: format ‘%lu’ expects argument of type
‘long unsigned int’, but argument 3 has type ‘__u64 {aka long long
unsigned int}’ [-Wformat=]
fprintf(stdout, "GPIO EVENT %" PRIu64 ": ", event.timestamp);
^~~~~~~~~~~~~~
LD /tmp/kselftest/gpiogpio-event-mon-in.o
LINK /tmp/kselftest/gpiogpio-event-mon
Fix is to replace PRIu64 with llu, which we know is what the kernel uses
for __u64.
Signed-off-by: Anders Roxell <[email protected]>
Tested-by: Daniel Díaz <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions