[BusyBox] can syslog to vsyslog?
Vladimir N. Oleynik
dzo at simtreas.ru
Fri Feb 2 17:38:58 UTC 2001
"Vladimir N. Oleynik" wrote:
>
> Hi.
>
> I see uclibc have vsyslog().
> I have idea:
> 1) see patch in attach
> 2) move init.c:message() to utilites.c
> (after can use in tynylogin and netkit)
--w
vodz
Excuse me. attach now.
-------------- next part --------------
diff -ru busybox.orig/init.c busybox/init.c
--- busybox.orig/init.c Fri Feb 2 17:17:02 2001
+++ busybox/init.c Fri Feb 2 20:32:14 2001
@@ -199,13 +199,10 @@
/* Log the message to syslogd */
if (device & LOG) {
- char msg[1024];
-
va_start(arguments, fmt);
- vsnprintf(msg, sizeof(msg), fmt, arguments);
- va_end(arguments);
openlog(applet_name, 0, LOG_USER);
- syslog(LOG_USER|LOG_INFO, msg);
+ vsyslog(LOG_USER|LOG_INFO, fmt, arguments);
+ va_end(arguments);
closelog();
}
#else
More information about the busybox
mailing list