From 5d6f906bd789f40fb0c58398909cfb39d44d4456 Mon Sep 17 00:00:00 2001 From: Ian Fan Date: Thu, 24 Jan 2019 11:32:49 +0000 Subject: Use sway_log_errno instead of strerror --- sway/input/seat.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sway/input') diff --git a/sway/input/seat.c b/sway/input/seat.c index fd5eda2d..b6ccd830 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -1,7 +1,6 @@ #define _POSIX_C_SOURCE 200809L -#include -#include #include +#include #include #include #include @@ -827,8 +826,7 @@ void seat_set_focus(struct sway_seat *seat, struct sway_node *node) { wl_event_source_timer_update(view->urgent_timer, config->urgent_timeout); } else { - sway_log(SWAY_ERROR, "Unable to create urgency timer (%s)", - strerror(errno)); + sway_log_errno(SWAY_ERROR, "Unable to create urgency timer"); handle_urgent_timeout(view); } } else { -- cgit v1.2.3