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);
}