From 159cc69510aa5837554986a3b7f96ec994a51083 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 11 Nov 2024 09:22:42 +1000 Subject: [PATCH] tools/list-local-devices: print vid/pid as number YAML does upport hex so let's print it as normal number to make for easier parsing --- tools/list-local-devices.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/list-local-devices.c b/tools/list-local-devices.c index a90fa401..361ac3f7 100644 --- a/tools/list-local-devices.c +++ b/tools/list-local-devices.c @@ -136,8 +136,8 @@ tablet_print_yaml(gpointer data, gpointer user_data) printf(" - name: '%s'\n", name); printf(" bus: '%s'\n", bus); - printf(" vid: '0x%04x'\n", vid); - printf(" pid: '0x%04x'\n", pid); + printf(" vid: 0x%04x\n", vid); + printf(" pid: 0x%04x\n", pid); printf(" nodes: \n"); g_list_foreach(d->nodes, print_devnode, NULL);