projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
get rid of perror() calls, use ERROR() instead
[project/procd.git]
/
watchdog.c
diff --git
a/watchdog.c
b/watchdog.c
index
98961d3
..
0ba8f25
100644
(file)
--- 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);
}