diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-10-07 15:28:05 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-10-11 16:39:09 +0200 |
commit | a6e016af0106d4204ec4718ecfdc137355656241 (patch) | |
tree | d6d6aa9beea607b9adb9a7373ee7f26e0591a768 /src/test/test-sleep.c | |
parent | 2c5d05b3cd986568105d67891e4010b868dea24f (diff) | |
download | systemd-a6e016af0106d4204ec4718ecfdc137355656241.tar.gz |
tree-wide: use STRERROR()
Diffstat (limited to 'src/test/test-sleep.c')
-rw-r--r-- | src/test/test-sleep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test-sleep.c b/src/test/test-sleep.c index 6bac115f71..799e93dced 100644 --- a/src/test/test-sleep.c +++ b/src/test/test-sleep.c @@ -109,13 +109,13 @@ TEST(sleep) { log_info("/= high-level sleep verbs =/"); r = can_sleep(SLEEP_SUSPEND); - log_info("Suspend configured and possible: %s", r >= 0 ? yes_no(r) : strerror_safe(r)); + log_info("Suspend configured and possible: %s", r >= 0 ? yes_no(r) : STRERROR(r)); r = can_sleep(SLEEP_HIBERNATE); - log_info("Hibernation configured and possible: %s", r >= 0 ? yes_no(r) : strerror_safe(r)); + log_info("Hibernation configured and possible: %s", r >= 0 ? yes_no(r) : STRERROR(r)); r = can_sleep(SLEEP_HYBRID_SLEEP); - log_info("Hybrid-sleep configured and possible: %s", r >= 0 ? yes_no(r) : strerror_safe(r)); + log_info("Hybrid-sleep configured and possible: %s", r >= 0 ? yes_no(r) : STRERROR(r)); r = can_sleep(SLEEP_SUSPEND_THEN_HIBERNATE); - log_info("Suspend-then-Hibernate configured and possible: %s", r >= 0 ? yes_no(r) : strerror_safe(r)); + log_info("Suspend-then-Hibernate configured and possible: %s", r >= 0 ? yes_no(r) : STRERROR(r)); } static int intro(void) { |