chiark / gitweb /
treewide: auto-convert the simple cases to log_*_errno()
[elogind.git] / src / test / test-watchdog.c
index ccb1854708047e3f22813467bee8ec5425a0c5b4..72e0c03dd78610d55734bf950caeb29ba67e9f71 100644 (file)
@@ -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);
         }