From c84a3e3519caddcbfa6f371793342cff2a3a9235 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 12 May 2017 07:57:45 -0600 Subject: [PATCH] Bitbucket Issue 47: Some of last syslog changes needed to be condition on #ifdef CONFIG_SYSLOG_BUFFER in order to be built without syslog buffering enabled. --- drivers/syslog/syslog_stream.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/syslog/syslog_stream.c b/drivers/syslog/syslog_stream.c index 2119b9e917..a14a5d4f12 100644 --- a/drivers/syslog/syslog_stream.c +++ b/drivers/syslog/syslog_stream.c @@ -98,6 +98,7 @@ static int syslogstream_flush(FAR struct lib_syslogstream_s *stream) * Name: syslogstream_addchar ****************************************************************************/ +#ifdef CONFIG_SYSLOG_BUFFER static void syslogstream_addchar(FAR struct lib_syslogstream_s *stream, int ch) { FAR struct iob_s *iob = stream->iob; @@ -120,6 +121,7 @@ static void syslogstream_addchar(FAR struct lib_syslogstream_s *stream, int ch) syslogstream_flush(stream); } } +#endif /**************************************************************************** * Name: syslogstream_putc