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:
parent
7a8a3a3547
commit
acec383be0
|
@ -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:");
|
||||
|
|
Loading…
Reference in New Issue