make a few variables static
[project/procd.git] / watchdog.c
index 98961d32bb1d9fa5bdd093cdf2c27d134916dc2b..0ba8f25f0ea1423f6e897aecff384e3735cbf381 100644 (file)
@@ -36,7 +36,7 @@ static void watchdog_timeout_cb(struct uloop_timeout *t)
 {
        DEBUG(2, "Ping\n");
        if (write(wdt_fd, "X", 1) < 0)
-               perror("WDT failed to write\n");
+               ERROR("WDT failed to write: %s\n", strerror(errno));
        uloop_timeout_set(t, wdt_frequency * 1000);
 }