don't out \r to syslog
author"Vladimir N. Oleynik" <dzo@simtreas.ru>
Thu, 29 Sep 2005 12:55:21 +0000 (12:55 -0000)
committer"Vladimir N. Oleynik" <dzo@simtreas.ru>
Thu, 29 Sep 2005 12:55:21 +0000 (12:55 -0000)
init/init.c

index 058a47a..166f526 100644 (file)
@@ -225,7 +225,7 @@ static void message(int device, const char *fmt, ...)
        if (device & LOG) {
                /* don`t out "\r\n" */
                openlog(bb_applet_name, 0, LOG_DAEMON);
-               syslog(LOG_INFO, "%s", msg);
+               syslog(LOG_INFO, "%s", msg + 1);
                closelog();
        }