diff options
author | Ian Fan <ianfan0@gmail.com> | 2019-01-24 11:32:49 +0000 |
---|---|---|
committer | Ian Fan <ianfan0@gmail.com> | 2019-01-24 11:33:54 +0000 |
commit | 5d6f906bd789f40fb0c58398909cfb39d44d4456 (patch) | |
tree | ba85cc3d475bd57cfe310c5783ebe4e417a17164 /sway/desktop | |
parent | 75406bb93b96091d30e52922d0f319530fe65471 (diff) | |
download | sway-5d6f906bd789f40fb0c58398909cfb39d44d4456.tar.xz |
Use sway_log_errno instead of strerror
Diffstat (limited to 'sway/desktop')
-rw-r--r-- | sway/desktop/transaction.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c index 55cf1c5e..88a9b027 100644 --- a/sway/desktop/transaction.c +++ b/sway/desktop/transaction.c @@ -1,6 +1,4 @@ #define _POSIX_C_SOURCE 200809L -#include <errno.h> -#include <limits.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> @@ -449,9 +447,8 @@ static void transaction_commit(struct sway_transaction *transaction) { wl_event_source_timer_update(transaction->timer, server.txn_timeout_ms); } else { - sway_log(SWAY_ERROR, "Unable to create transaction timer (%s). " - "Some imperfect frames might be rendered.", - strerror(errno)); + sway_log_errno(SWAY_ERROR, "Unable to create transaction timer " + "(some imperfect frames might be rendered)"); transaction->num_waiting = 0; } } |