summaryrefslogtreecommitdiff
path: root/src/test/test-watchdog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test-watchdog.c')
-rw-r--r--src/test/test-watchdog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-watchdog.c b/src/test/test-watchdog.c
index ccb1854708..72e0c03dd7 100644
--- a/src/test/test-watchdog.c
+++ b/src/test/test-watchdog.c
@@ -35,13 +35,13 @@ int main(int argc, char *argv[]) {
r = watchdog_set_timeout(&t);
if (r < 0)
- log_warning("Failed to open watchdog: %s", strerror(-r));
+ log_warning_errno(-r, "Failed to open watchdog: %m");
for (i = 0; i < 5; i++) {
log_info("Pinging...");
r = watchdog_ping();
if (r < 0)
- log_warning("Failed to ping watchdog: %s", strerror(-r));
+ log_warning_errno(-r, "Failed to ping watchdog: %m");
usleep(t/2);
}