summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-08 09:44:15 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-08 09:44:15 -0600
commitab1282a14781ce3244908b0421b295b1ea65f26f (patch)
tree7ca3d474b1d41ca65d07978577147e49da205f5b /nuttx/include
parentcc7f2b26e037d5790cc8751a2f7354e39513783c (diff)
downloadpx4-nuttx-ab1282a14781ce3244908b0421b295b1ea65f26f.tar.gz
px4-nuttx-ab1282a14781ce3244908b0421b295b1ea65f26f.tar.bz2
px4-nuttx-ab1282a14781ce3244908b0421b295b1ea65f26f.zip
make standard syslog and vsyslog POSIX compliant (also modify non-standard syslog functions for compatibility). This will break a lot of things until ALL usage of syslog is updated to use the modified interfaces
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/debug.h8
-rw-r--r--nuttx/include/syslog.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/nuttx/include/debug.h b/nuttx/include/debug.h
index 7fd6bc497..74f50935a 100644
--- a/nuttx/include/debug.h
+++ b/nuttx/include/debug.h
@@ -104,22 +104,22 @@
#ifdef CONFIG_DEBUG
# define dbg(format, ...) \
- syslog(EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
+ syslog(LOG_DEBUG, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
# ifdef CONFIG_ARCH_LOWPUTC
# define lldbg(format, ...) \
- lowsyslog(EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
+ lowsyslog(LOG_DEBUG, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
# else
# define lldbg(x...)
# endif
# ifdef CONFIG_DEBUG_VERBOSE
# define vdbg(format, ...) \
- syslog(EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
+ syslog(LOG_DEBUG, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
# ifdef CONFIG_ARCH_LOWPUTC
# define llvdbg(format, ...) \
- lowsyslog(EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
+ lowsyslog(LOG_DEBUG, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
# else
# define llvdbg(x...)
# endif
diff --git a/nuttx/include/syslog.h b/nuttx/include/syslog.h
index ab0e6073c..1773159a4 100644
--- a/nuttx/include/syslog.h
+++ b/nuttx/include/syslog.h
@@ -128,12 +128,12 @@ int setlogmask(int mask);
* following.
*/
-int syslog(FAR const char *format, ...);
-int vsyslog(const char *src, va_list ap);
+int syslog(int priority, FAR const char *format, ...);
+int vsyslog(int priority, FAR const char *src, va_list ap);
#ifdef CONFIG_ARCH_LOWPUTC /* Non-standard */
-int lowsyslog(FAR const char *format, ...);
-int lowvsyslog(FAR const char *src, va_list ap);
+int lowsyslog(int priority, FAR const char *format, ...);
+int lowvsyslog(int priority, FAR const char *src, va_list ap);
#endif
/* Enable or disable syslog output */