X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=ulog.c;h=296605dde876f116217c228ef45a6ed4e77e61f2;hb=155bf39896f126b1ba121b816922a88dc34c31e3;hp=66aad90298909b215a530c534ee0da02276a84dc;hpb=d1c66ef1131d14f0ed197b368d03f71b964e45f8;p=project%2Flibubox.git 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)