mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
Use sway_log_errno instead of strerror
This commit is contained in:
parent
75406bb93b
commit
5d6f906bd7
3 changed files with 9 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue