mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
Eliminating GCC dependencies
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@14 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+14
-3
@@ -48,17 +48,28 @@
|
||||
|
||||
/* Debug macros to runtime filter the opsys debug messages */
|
||||
|
||||
#ifdef __GNUC__
|
||||
# define EXTRA_FMT "%s: "
|
||||
# define EXTRA_ARG ,__FUNCTION__
|
||||
#else
|
||||
# define EXTRA_FMT
|
||||
# define EXTRA_ARG
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
# define dbg(format, arg...) lib_rawprintf(format, ##arg)
|
||||
# define dbg(format, arg...) \
|
||||
lib_rawprintf(EXTRA_FMT format EXTRA_ARG, ##arg)
|
||||
|
||||
# ifdef CONFIG_ARCH_LOWPUTC
|
||||
# define lldbg(format, arg...) lib_lowprintf(format, ##arg)
|
||||
# define lldbg(format, arg...) \
|
||||
lib_lowprintf(EXTRA_FMT format EXTRA_ARG, ##arg)
|
||||
# else
|
||||
# define lldbg(x...)
|
||||
# endif
|
||||
|
||||
# ifdef CONFIG_DEBUG_VERBOSE
|
||||
# define vdbg(format, arg...) lib_rawprintf(format, ##arg)
|
||||
# define vdbg(format, arg...) \
|
||||
lib_rawprintf(EXTRA_FMT format EXTRA_ARG, ##arg)
|
||||
# else
|
||||
# define vdbg(x...)
|
||||
# endif
|
||||
|
||||
Reference in New Issue
Block a user