X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=blobdiff_plain;f=ulog.c;h=296605dde876f116217c228ef45a6ed4e77e61f2;hp=66aad90298909b215a530c534ee0da02276a84dc;hb=6a75b3b6437d3c98d852c1bca131c8f81646f2f5;hpb=d1c66ef1131d14f0ed197b368d03f71b964e45f8 diff --git a/ulog.c b/ulog.c index 66aad90..296605d 100644 --- a/ulog.c +++ b/ulog.c @@ -90,7 +90,7 @@ static void ulog_kmsg(int priority, const char *fmt, va_list ap) { FILE *kmsg; - if ((kmsg = fopen("/dev/kmsg", "w")) != NULL) { + if ((kmsg = fopen("/dev/kmsg", "r+")) != NULL) { fprintf(kmsg, "<%u>", priority); if (_ulog_ident)