projects
/
oweals
/
ubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea3d7fa
)
logread: remove leftover debug code
author
Felix Fietkau
<nbd@nbd.name>
Mon, 6 Nov 2017 10:46:24 +0000
(11:46 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Mon, 6 Nov 2017 10:46:24 +0000
(11:46 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
log/logread.c
patch
|
blob
|
history
diff --git
a/log/logread.c
b/log/logread.c
index 0cae75ba27f654a929530ca72634e43b57e7b373..920d96b97dc3a1dc1504c39e59a2b45354daa695 100644
(file)
--- a/
log/logread.c
+++ b/
log/logread.c
@@
-103,7
+103,6
@@
static int log_notify(struct blob_attr *msg)
char buf[512];
char buf_ts[32];
uint32_t p;
- char *str;
time_t t;
uint32_t t_ms = 0;
char *c, *m;
@@
-145,7
+144,7
@@
static int log_notify(struct blob_attr *msg)
c = ctime(&t);
p = blobmsg_get_u32(tb[LOG_PRIO]);
c[strlen(c) - 1] = '\0';
- str = blobmsg_format_json(msg, true);
+
if (log_type == LOG_NET) {
int err;
@@
-191,7
+190,6
@@
static int log_notify(struct blob_attr *msg)
ret = write(sender.fd, buf, strlen(buf));
}
- free(str);
if (log_type == LOG_FILE)
fsync(sender.fd);