diff options
author | Jan Janssen <medhefgo@web.de> | 2022-08-29 13:07:11 +0200 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2022-08-30 12:03:28 +0200 |
commit | c0f86d66f3f6b561528e7f856f9926bec766c036 (patch) | |
tree | b5b17ffb3a41a7974ff0ad35db009b4f8aa94116 /src/udev/udev-builtin-keyboard.c | |
parent | Merge pull request #24474 from yuwata/udevadm-settle-cleanups (diff) | |
download | systemd-c0f86d66f3f6b561528e7f856f9926bec766c036.tar.xz systemd-c0f86d66f3f6b561528e7f856f9926bec766c036.zip |
tree-wide: Use correct format specifiers
gcc will complain about all these with -Wformat-signedness.
Diffstat (limited to 'src/udev/udev-builtin-keyboard.c')
-rw-r--r-- | src/udev/udev-builtin-keyboard.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/udev-builtin-keyboard.c b/src/udev/udev-builtin-keyboard.c index b09757bfc2..6dd9eebd93 100644 --- a/src/udev/udev-builtin-keyboard.c +++ b/src/udev/udev-builtin-keyboard.c @@ -78,11 +78,11 @@ static int map_keycode(sd_device *dev, int fd, int scancode, const char *keycode map.scan = scancode; map.key = keycode_num; - log_device_debug(dev, "keyboard: mapping scan code %d (0x%x) to key code %d (0x%x)", + log_device_debug(dev, "keyboard: mapping scan code %u (0x%x) to key code %u (0x%x)", map.scan, map.scan, map.key, map.key); if (ioctl(fd, EVIOCSKEYCODE, &map) < 0) - return log_device_error_errno(dev, errno, "Failed to call EVIOCSKEYCODE with scan code 0x%x, and key code %d: %m", map.scan, map.key); + return log_device_error_errno(dev, errno, "Failed to call EVIOCSKEYCODE with scan code 0x%x, and key code %u: %m", map.scan, map.key); return 0; } |