From bbf7b92fe4b34288dbe7c58827a1f69428ffb263 Mon Sep 17 00:00:00 2001 From: Antonin Décimo Date: Thu, 4 Jun 2020 15:43:42 +0200 Subject: Fix incorrect format specifiers --- sway/input/libinput.c | 4 ++-- sway/input/seat.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sway/input') diff --git a/sway/input/libinput.c b/sway/input/libinput.c index 4ec72882..108fc7b2 100644 --- a/sway/input/libinput.c +++ b/sway/input/libinput.c @@ -19,7 +19,7 @@ static bool set_send_events(struct libinput_device *device, uint32_t mode) { if (libinput_device_config_send_events_get_mode(device) == mode) { return false; } - sway_log(SWAY_DEBUG, "send_events_set_mode(%d)", mode); + sway_log(SWAY_DEBUG, "send_events_set_mode(%" PRIu32 ")", mode); log_status(libinput_device_config_send_events_set_mode(device, mode)); return true; } @@ -150,7 +150,7 @@ static bool set_scroll_button(struct libinput_device *dev, uint32_t button) { libinput_device_config_scroll_get_button(dev) == button) { return false; } - sway_log(SWAY_DEBUG, "scroll_set_button(%d)", button); + sway_log(SWAY_DEBUG, "scroll_set_button(%" PRIu32 ")", button); log_status(libinput_device_config_scroll_set_button(dev, button)); return true; } diff --git a/sway/input/seat.c b/sway/input/seat.c index bcf01962..e16d747c 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -916,7 +916,7 @@ void seat_configure_xcursor(struct sway_seat *seat) { if (seat == input_manager_get_default_seat()) { char cursor_size_fmt[16]; - snprintf(cursor_size_fmt, sizeof(cursor_size_fmt), "%d", cursor_size); + snprintf(cursor_size_fmt, sizeof(cursor_size_fmt), "%u", cursor_size); setenv("XCURSOR_SIZE", cursor_size_fmt, 1); if (cursor_theme != NULL) { setenv("XCURSOR_THEME", cursor_theme, 1); -- cgit v1.2.3-54-g00ecf