summaryrefslogtreecommitdiffstats
path: root/watchdog.c
diff options
context:
space:
mode:
Diffstat (limited to 'watchdog.c')
-rw-r--r--watchdog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/watchdog.c b/watchdog.c
index 98961d3..0ba8f25 100644
--- a/watchdog.c
+++ b/watchdog.c
@@ -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);
}