Fix compiler warnings: invalid type format

This patch fixes the following warnings:

clients/weston-info.c: In function 'print_tablet_tool_info':
clients/weston-info.c:569:3: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'uint64_t' [-Wformat=]
   printf("\t\t\thardware serial: %lx\n", info->hardware_serial);
   ^
clients/weston-info.c:572:3: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'uint64_t' [-Wformat=]
   printf("\t\t\thardware wacom: %lx\n", info->hardware_id_wacom);

Signed-off-by: Marius Vlad <marius.vlad0@gmail.com>
dev
Marius Vlad 6 years ago
parent 7a8a3a3547
commit acec383be0
  1. 4
      clients/weston-info.c

@ -594,10 +594,10 @@ print_tablet_tool_info(const struct tablet_tool_info *info)
{ {
printf("\t\ttablet_tool: %s\n", tablet_tool_type_to_str(info->type)); printf("\t\ttablet_tool: %s\n", tablet_tool_type_to_str(info->type));
if (info->hardware_serial) { if (info->hardware_serial) {
printf("\t\t\thardware serial: %lx\n", info->hardware_serial); printf("\t\t\thardware serial: %" PRIx64 "\n", info->hardware_serial);
} }
if (info->hardware_id_wacom) { if (info->hardware_id_wacom) {
printf("\t\t\thardware wacom: %lx\n", info->hardware_id_wacom); printf("\t\t\thardware wacom: %" PRIx64 "\n", info->hardware_id_wacom);
} }
printf("\t\t\tcapabilities:"); printf("\t\t\tcapabilities:");

Loading…
Cancel
Save