linux-stable/tools/gpio
Anders Roxell 03fd11b033 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 <anders.roxell@linaro.org>
Tested-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2018-03-01 15:26:58 +01:00
..
.gitignore gpio: tools: add .gitignore for generated files 2017-01-11 16:18:09 +01:00
Build tools/gpio: move to tools buildsystem 2016-06-23 11:07:13 +02:00
gpio-event-mon.c tools/gpio/gpio-event-mon: fix warning 2018-03-01 15:26:58 +01:00
gpio-hammer.c gpio-hammer: fix make consumer_label suitable to work on gpio-nails 2017-01-26 16:29:09 +01:00
gpio-utils.c tools: gpio: Print error string on IOCTL failures 2017-10-07 00:03:14 +02:00
gpio-utils.h tools/gpio: add gpio basic opereations 2016-10-24 16:33:11 +02:00
lsgpio.c tools/gpio: Add missing initialization of device_name 2016-03-31 11:51:30 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00