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>
This commit is contained in:
Marius Vlad 2018-11-23 14:07:33 +02:00
parent 7a8a3a3547
commit acec383be0
1 changed files with 2 additions and 2 deletions

View File

@ -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));
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) {
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:");