summaryrefslogtreecommitdiff
path: root/tools/libinput-record.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/libinput-record.c')
-rw-r--r--tools/libinput-record.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/libinput-record.c b/tools/libinput-record.c
index 3ad593fc..a4d055a4 100644
--- a/tools/libinput-record.c
+++ b/tools/libinput-record.c
@@ -1597,8 +1597,7 @@ print_hid_report_descriptor(struct record_device *dev)
while ((len = read(fd, buf, sizeof(buf))) > 0) {
for (int i = 0; i < len; i++) {
- /* YAML requires decimal */
- iprintf(dev->fp, I_NONE, "%s%u", sep, buf[i]);
+ iprintf(dev->fp, I_NONE, "%s0x%02x", sep, buf[i]);
sep = ", ";
}
}