Add syslog.h; rename lib_rawprintf() to syslog()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5578 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
7e7e9979a2
commit
02baadfe5a
@ -75,11 +75,11 @@
|
|||||||
# define CONFIG_CBUTTONARRAYTEST_FONTCOLOR CONFIG_NXWIDGETS_DEFAULT_FONTCOLOR
|
# define CONFIG_CBUTTONARRAYTEST_FONTCOLOR CONFIG_NXWIDGETS_DEFAULT_FONTCOLOR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// If debug is enabled, use the debug function, lib_rawprintf() instead
|
// If debug is enabled, use the debug function, syslog() instead
|
||||||
// of printf() so that the output is synchronized.
|
// of printf() so that the output is synchronized.
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG
|
||||||
# define message lib_lowprintf
|
# define message lowsyslog
|
||||||
#else
|
#else
|
||||||
# define message printf
|
# define message printf
|
||||||
#endif
|
#endif
|
||||||
|
@ -69,11 +69,11 @@
|
|||||||
# define CONFIG_CCHECKBOXTEST_BGCOLOR CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR
|
# define CONFIG_CCHECKBOXTEST_BGCOLOR CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// If debug is enabled, use the debug function, lib_rawprintf() instead
|
// If debug is enabled, use the debug function, syslog() instead
|
||||||
// of printf() so that the output is synchronized.
|
// of printf() so that the output is synchronized.
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG
|
||||||
# define message lib_lowprintf
|
# define message lowsyslog
|
||||||
#else
|
#else
|
||||||
# define message printf
|
# define message printf
|
||||||
#endif
|
#endif
|
||||||
|
@ -76,11 +76,11 @@
|
|||||||
# define CONFIG_CGLYPHBUTTONTEST_FONTCOLOR CONFIG_NXWIDGETS_DEFAULT_FONTCOLOR
|
# define CONFIG_CGLYPHBUTTONTEST_FONTCOLOR CONFIG_NXWIDGETS_DEFAULT_FONTCOLOR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// If debug is enabled, use the debug function, lib_rawprintf() instead
|
// If debug is enabled, use the debug function, syslog() instead
|
||||||
// of printf() so that the output is synchronized.
|
// of printf() so that the output is synchronized.
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG
|
||||||
# define message lib_lowprintf
|
# define message lowsyslog
|
||||||
#else
|
#else
|
||||||
# define message printf
|
# define message printf
|
||||||
#endif
|
#endif
|
||||||
|
@ -71,11 +71,11 @@
|
|||||||
# define CONFIG_CIMAGETEST_BGCOLOR CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR
|
# define CONFIG_CIMAGETEST_BGCOLOR CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// If debug is enabled, use the debug function, lib_rawprintf() instead
|
// If debug is enabled, use the debug function, syslog() instead
|
||||||
// of printf() so that the output is synchronized.
|
// of printf() so that the output is synchronized.
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG
|
||||||
# define message lib_lowprintf
|
# define message lowsyslog
|
||||||
#else
|
#else
|
||||||
# define message printf
|
# define message printf
|
||||||
#endif
|
#endif
|
||||||
|
@ -72,11 +72,11 @@
|
|||||||
# define CONFIG_CKEYPADTEST_BGCOLOR CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR
|
# define CONFIG_CKEYPADTEST_BGCOLOR CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// If debug is enabled, use the debug function, lib_rawprintf() instead
|
// If debug is enabled, use the debug function, syslog() instead
|
||||||
// of printf() so that the output is synchronized.
|
// of printf() so that the output is synchronized.
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG
|
||||||
# define message lib_lowprintf
|
# define message lowsyslog
|
||||||
#else
|
#else
|
||||||
# define message printf
|
# define message printf
|
||||||
#endif
|
#endif
|
||||||
|
@ -75,11 +75,11 @@
|
|||||||
# define CONFIG_CLATCHBUTTONARRAYTEST_FONTCOLOR CONFIG_NXWIDGETS_DEFAULT_FONTCOLOR
|
# define CONFIG_CLATCHBUTTONARRAYTEST_FONTCOLOR CONFIG_NXWIDGETS_DEFAULT_FONTCOLOR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// If debug is enabled, use the debug function, lib_rawprintf() instead
|
// If debug is enabled, use the debug function, syslog() instead
|
||||||
// of printf() so that the output is synchronized.
|
// of printf() so that the output is synchronized.
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG
|
||||||
# define message lib_lowprintf
|
# define message lowsyslog
|
||||||
#else
|
#else
|
||||||
# define message printf
|
# define message printf
|
||||||
#endif
|
#endif
|
||||||
|
@ -69,11 +69,11 @@
|
|||||||
# define CONFIG_CLISTBOXTEST_BGCOLOR CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR
|
# define CONFIG_CLISTBOXTEST_BGCOLOR CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// If debug is enabled, use the debug function, lib_rawprintf() instead
|
// If debug is enabled, use the debug function, syslog() instead
|
||||||
// of printf() so that the output is synchronized.
|
// of printf() so that the output is synchronized.
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG
|
||||||
# define message lib_lowprintf
|
# define message lowsyslog
|
||||||
#else
|
#else
|
||||||
# define message printf
|
# define message printf
|
||||||
#endif
|
#endif
|
||||||
|
@ -69,11 +69,11 @@
|
|||||||
# define CONFIG_CPROGRESSBARTEST_BGCOLOR CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR
|
# define CONFIG_CPROGRESSBARTEST_BGCOLOR CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// If debug is enabled, use the debug function, lib_rawprintf() instead
|
// If debug is enabled, use the debug function, syslog() instead
|
||||||
// of printf() so that the output is synchronized.
|
// of printf() so that the output is synchronized.
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG
|
||||||
# define message lib_lowprintf
|
# define message lowsyslog
|
||||||
#else
|
#else
|
||||||
# define message printf
|
# define message printf
|
||||||
#endif
|
#endif
|
||||||
|
@ -70,11 +70,11 @@
|
|||||||
# define CONFIG_CRADIOBUTTONTEST_BGCOLOR CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR
|
# define CONFIG_CRADIOBUTTONTEST_BGCOLOR CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// If debug is enabled, use the debug function, lib_rawprintf() instead
|
// If debug is enabled, use the debug function, syslog() instead
|
||||||
// of printf() so that the output is synchronized.
|
// of printf() so that the output is synchronized.
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG
|
||||||
# define message lib_lowprintf
|
# define message lowsyslog
|
||||||
#else
|
#else
|
||||||
# define message printf
|
# define message printf
|
||||||
#endif
|
#endif
|
||||||
|
@ -69,11 +69,11 @@
|
|||||||
# define CONFIG_CSCROLLBARHORIZONTALTEST_BGCOLOR CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR
|
# define CONFIG_CSCROLLBARHORIZONTALTEST_BGCOLOR CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// If debug is enabled, use the debug function, lib_rawprintf() instead
|
// If debug is enabled, use the debug function, syslog() instead
|
||||||
// of printf() so that the output is synchronized.
|
// of printf() so that the output is synchronized.
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG
|
||||||
# define message lib_lowprintf
|
# define message lowsyslog
|
||||||
#else
|
#else
|
||||||
# define message printf
|
# define message printf
|
||||||
#endif
|
#endif
|
||||||
|
@ -69,11 +69,11 @@
|
|||||||
# define CONFIG_CSCROLLBARVERTICALTEST_BGCOLOR CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR
|
# define CONFIG_CSCROLLBARVERTICALTEST_BGCOLOR CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// If debug is enabled, use the debug function, lib_rawprintf() instead
|
// If debug is enabled, use the debug function, syslog() instead
|
||||||
// of printf() so that the output is synchronized.
|
// of printf() so that the output is synchronized.
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG
|
||||||
# define message lib_lowprintf
|
# define message lowsyslog
|
||||||
#else
|
#else
|
||||||
# define message printf
|
# define message printf
|
||||||
#endif
|
#endif
|
||||||
|
@ -69,11 +69,11 @@
|
|||||||
# define CONFIG_CSLIDERHORIZONTALTEST_BGCOLOR CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR
|
# define CONFIG_CSLIDERHORIZONTALTEST_BGCOLOR CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// If debug is enabled, use the debug function, lib_rawprintf() instead
|
// If debug is enabled, use the debug function, syslog() instead
|
||||||
// of printf() so that the output is synchronized.
|
// of printf() so that the output is synchronized.
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG
|
||||||
# define message lib_lowprintf
|
# define message lowsyslog
|
||||||
#else
|
#else
|
||||||
# define message printf
|
# define message printf
|
||||||
#endif
|
#endif
|
||||||
|
@ -69,11 +69,11 @@
|
|||||||
# define CONFIG_CSLIDERVERTICALTEST_BGCOLOR CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR
|
# define CONFIG_CSLIDERVERTICALTEST_BGCOLOR CONFIG_NXWIDGETS_DEFAULT_BACKGROUNDCOLOR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// If debug is enabled, use the debug function, lib_rawprintf() instead
|
// If debug is enabled, use the debug function, syslog() instead
|
||||||
// of printf() so that the output is synchronized.
|
// of printf() so that the output is synchronized.
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG
|
#ifdef CONFIG_DEBUG
|
||||||
# define message lib_lowprintf
|
# define message lowsyslog
|
||||||
#else
|
#else
|
||||||
# define message printf
|
# define message printf
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user