projects
/
oweals
/
ubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ubox: Replace strerror(errno) with %m format.
[oweals/ubox.git]
/
log
/
logd.c
diff --git
a/log/logd.c
b/log/logd.c
index 9931723f6974fd35c156bc94345df0f858537f2b..18788fed9a3cfa342e29cefc6498aeebbba337ef 100644
(file)
--- a/
log/logd.c
+++ b/
log/logd.c
@@
-119,7
+119,7
@@
read_log(struct ubus_context *ctx, struct ubus_object *obj,
l = log_list(count, NULL);
if (stream) {
if (pipe(fds) == -1) {
- fprintf(stderr, "logd: failed to create pipe: %
s\n", strerror(errno)
);
+ fprintf(stderr, "logd: failed to create pipe: %
m\n"
);
return -1;
}