From f9d4b5020710061eb6af3ed35233d1b0fbb93438 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 11 Jul 2016 13:52:21 -0600 Subject: [PATCH] If there are no streams, let printf() fall back to use syslog() for output. --- libc/stdio/lib_printf.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libc/stdio/lib_printf.c b/libc/stdio/lib_printf.c index b760abb4bb..7c3e460b97 100644 --- a/libc/stdio/lib_printf.c +++ b/libc/stdio/lib_printf.c @@ -58,13 +58,8 @@ int printf(FAR const IPTR char *fmt, ...) va_start(ap, fmt); #if CONFIG_NFILE_STREAMS > 0 ret = vfprintf(stdout, fmt, ap); -#elif CONFIG_NFILE_DESCRIPTORS > 0 - ret = vsyslog(LOG_INFO, fmt, ap); #else -# ifdef CONFIG_CPP_HAVE_WARNING -# warning "printf has no data sink" -# endif - ret = 0; + ret = vsyslog(LOG_INFO, fmt, ap); #endif va_end(ap);