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 058a47a83c4b5fc0b4fb86ef60d7bbfe70c4e2ec..166f526e01627faa4bf77eb0d361c80bce0251b2 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();
        }