projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
procd: Add %m to several functions that return errno.
[project/procd.git]
/
watchdog.c
diff --git
a/watchdog.c
b/watchdog.c
index
97c8337
..
ec10ba6
100644
(file)
--- a/
watchdog.c
+++ b/
watchdog.c
@@
-37,7
+37,7
@@
void watchdog_ping(void)
{
DEBUG(4, "Ping\n");
if (wdt_fd >= 0 && write(wdt_fd, "X", 1) < 0)
{
DEBUG(4, "Ping\n");
if (wdt_fd >= 0 && write(wdt_fd, "X", 1) < 0)
- ERROR("WDT failed to write: %
s\n", strerror(errno)
);
+ ERROR("WDT failed to write: %
m\n"
);
}
static void watchdog_timeout_cb(struct uloop_timeout *t)
}
static void watchdog_timeout_cb(struct uloop_timeout *t)
@@
-76,10
+76,10
@@
static void watchdog_close(void)
return;
if (write(wdt_fd, "V", 1) < 0)
return;
if (write(wdt_fd, "V", 1) < 0)
- ERROR("WDT failed to write release: %
s\n", strerror(errno)
);
+ ERROR("WDT failed to write release: %
m\n"
);
if (close(wdt_fd) == -1)
if (close(wdt_fd) == -1)
- ERROR("WDT failed to close watchdog: %
s\n", strerror(errno)
);
+ ERROR("WDT failed to close watchdog: %
m\n"
);
wdt_fd = -1;
}
wdt_fd = -1;
}