[PATCH 3/3] syslogd: add option to log to Linux kernel printk buffer

Peter Korsgaard jacmet at sunsite.dk
Sun Jan 6 09:27:03 UTC 2013


>>>>> "Mike" == Mike Frysinger <vapier at gentoo.org> writes:

 Mike> On Saturday 05 January 2013 18:07:19 Peter Korsgaard wrote:
 >> +#else
 >> +void kmsg_init(void);
 >> +void kmsg_cleanup(void);
 >> +void log_to_kmsg(int pri, const char *msg);
 >> +#endif /* FEATURE_KMSG_SYSLOG */
 >> ...
 >> +	if (ENABLE_FEATURE_KMSG_SYSLOG && (option_mask32 & OPT_kmsg)) {
 >> +		log_to_kmsg(pri, msg);
 >> +		return;
 >> +	}

 Mike> if you had the fallback funcs be static inline stubs, i think you
 Mike> could delete the constant ENABLE_FEATURE_KMSG_SYSLOG checks.

True. I kept it similar to the ipcsyslog_*() ones. Do you want me to
send a followup patch to convert both?

-- 
Bye, Peter Korsgaard


More information about the busybox mailing list