mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES
This commit is contained in:
+8
-8
@@ -81,7 +81,7 @@
|
||||
* fatal consequences).
|
||||
*
|
||||
* [a-z]dbg() -- Identical to [a-z]info() except that it also requires that
|
||||
* CONFIG_DEBUG be defined. This is intended for important error-related
|
||||
* CONFIG_DEBUG_FEATURES be defined. This is intended for important error-related
|
||||
* information that you probably not want to suppress during normal debug
|
||||
* general debugging.
|
||||
*
|
||||
@@ -102,7 +102,7 @@
|
||||
* fatal consequences).
|
||||
*
|
||||
* [a-z]lldbg() -- Identical to [a-z]llinfo() except that it also requires that
|
||||
* CONFIG_DEBUG be defined. This is intended for important error-related
|
||||
* CONFIG_DEBUG_FEATURES be defined. This is intended for important error-related
|
||||
* information that you probably not want to suppress during normal debug
|
||||
* general debugging.
|
||||
*/
|
||||
@@ -132,7 +132,7 @@
|
||||
|
||||
/* C-99 style variadic macros are supported */
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
# define dbg(format, ...) \
|
||||
__arch_syslog(LOG_ERR, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
# else
|
||||
# define lldbg(x...)
|
||||
# endif
|
||||
#else /* CONFIG_DEBUG */
|
||||
#else /* CONFIG_DEBUG_FEATURES */
|
||||
|
||||
# define dbg(x...)
|
||||
# define lldbg(x...)
|
||||
@@ -424,7 +424,7 @@
|
||||
|
||||
/* Variadic macros NOT supported */
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
# ifndef CONFIG_ARCH_LOWPUTC
|
||||
# define lldbg (void)
|
||||
# endif
|
||||
@@ -697,7 +697,7 @@
|
||||
|
||||
/* Buffer dumping macros do not depend on varargs */
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
# define dbgdumpbuffer(m,b,n) lib_dumpbuffer(m,b,n)
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define infodumpbuffer(m,b,n) lib_dumpbuffer(m,b,n)
|
||||
@@ -839,13 +839,13 @@ void lib_dumpbuffer(FAR const char *msg, FAR const uint8_t *buffer,
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_CPP_HAVE_VARARGS
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
int dbg(const char *format, ...);
|
||||
|
||||
# ifdef CONFIG_ARCH_LOWPUTC
|
||||
int lldbg(const char *format, ...);
|
||||
# endif
|
||||
#endif /* CONFIG_DEBUG */
|
||||
#endif /* CONFIG_DEBUG_FEATURES */
|
||||
|
||||
#ifdef CONFIG_DEBUG_WARN
|
||||
int warn(const char *format, ...);
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
* When SPI_SELECT is called with devid=SPIDEV_MUX.
|
||||
*
|
||||
* Other settings that effect the driver:
|
||||
* CONFIG_DEBUG_SPI -- With CONFIG_DEBUG and CONFIG_DEBUG_INFO,
|
||||
* CONFIG_DEBUG_SPI -- With CONFIG_DEBUG_FEATURES and CONFIG_DEBUG_INFO,
|
||||
* this will enable debug output from the PGA117 driver.
|
||||
*/
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
****************************************************************************/
|
||||
/* Configuration ************************************************************/
|
||||
/* CONFIG_AUDIO - Enables Audio driver support
|
||||
* CONFIG_DEBUG_AUDIO - If enabled (with CONFIG_DEBUG and, optionally,
|
||||
* CONFIG_DEBUG_AUDIO - If enabled (with CONFIG_DEBUG_FEATURES and, optionally,
|
||||
* CONFIG_DEBUG_INFO), this will generate output that can be used to
|
||||
* debug Audio drivers.
|
||||
*/
|
||||
|
||||
@@ -140,7 +140,7 @@ int nxffs_initialize(FAR struct mtd_dev_s *mtd);
|
||||
* Name: nxffs_dump
|
||||
*
|
||||
* Description:
|
||||
* Dump a summary of the contents of an NXFFS file system. CONFIG_DEBUG
|
||||
* Dump a summary of the contents of an NXFFS file system. CONFIG_DEBUG_FEATURES
|
||||
* and CONFIG_DEBUG_FS must be enabled for this function to do anything.
|
||||
*
|
||||
* Input Parameters:
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
* CONFIG_STMPE811_TEMP_DISABLE
|
||||
* Disable driver temperature sensor functionality.
|
||||
* CONFIG_STMPE811_REGDEBUG
|
||||
* Enable very low register-level debug output. Requires CONFIG_DEBUG.
|
||||
* Enable very low register-level debug output. Requires CONFIG_DEBUG_FEATURES.
|
||||
* CONFIG_STMPE811_THRESHX and CONFIG_STMPE811_THRESHY
|
||||
* STMPE811 touchscreen data comes in a a very high rate. New touch positions
|
||||
* will only be reported when the X or Y data changes by these thresholds.
|
||||
@@ -143,7 +143,7 @@
|
||||
|
||||
/* Debug output */
|
||||
|
||||
#ifndef CONFIG_DEBUG
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_STMPE811_REGDEBUG
|
||||
#endif
|
||||
|
||||
|
||||
@@ -427,7 +427,7 @@ FAR void *kmm_memalign(size_t alignment, size_t size);
|
||||
|
||||
/* Functions contained in kmm_heapmember.c **********************************/
|
||||
|
||||
#if defined(CONFIG_MM_KERNEL_HEAP) && defined(CONFIG_DEBUG)
|
||||
#if defined(CONFIG_MM_KERNEL_HEAP) && defined(CONFIG_DEBUG_FEATURES)
|
||||
bool kmm_heapmember(FAR void *mem);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -410,7 +410,7 @@ int iob_contig(FAR struct iob_s *iob, unsigned int len);
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
void iob_dump(FAR const char *msg, FAR struct iob_s *iob, unsigned int len,
|
||||
unsigned int offset);
|
||||
#else
|
||||
|
||||
+1
-1
@@ -72,7 +72,7 @@
|
||||
* number of pulses. This might be used, for example to support a stepper
|
||||
* motor. If the hardware will support a fixed pulse count, then this
|
||||
* configuration should be set to enable the capability.
|
||||
* CONFIG_DEBUG_PWM - If enabled (with CONFIG_DEBUG and, optionally,
|
||||
* CONFIG_DEBUG_PWM - If enabled (with CONFIG_DEBUG_FEATURES and, optionally,
|
||||
* CONFIG_DEBUG_INFO), this will generate output that can be use dto
|
||||
* debug the PWM driver.
|
||||
*/
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
* going high, it will start high and will go low when an interrupt
|
||||
* is fired. Default: Active high/rising edge.
|
||||
* CONFIG_ADXL345_REGDEBUG
|
||||
* Enable very low register-level debug output. Requires CONFIG_DEBUG.
|
||||
* Enable very low register-level debug output. Requires CONFIG_DEBUG_FEATURES.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DISABLE_SIGNALS
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
* CONFIG_BMP180
|
||||
* Enables support for the BMP180 driver
|
||||
* CONFIG_BMP180_REGDEBUG
|
||||
* Enable very low register-level debug output. Requires CONFIG_DEBUG.
|
||||
* Enable very low register-level debug output. Requires CONFIG_DEBUG_FEATURES.
|
||||
*/
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
* CONFIG_SENSORS_MPL115A
|
||||
* Enables support for the MPL115A driver
|
||||
* CONFIG_MPL115A_REGDEBUG
|
||||
* Enable very low register-level debug output. Requires CONFIG_DEBUG.
|
||||
* Enable very low register-level debug output. Requires CONFIG_DEBUG_FEATURES.
|
||||
*/
|
||||
|
||||
/* There are two types of MPL115A chips. The MPL115A1 communicates with the target CPU
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
* include/debug.h
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_INFO
|
||||
# undef CONFIG_DEBUG_SPI
|
||||
#endif
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
* include/debug.h
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_INFO
|
||||
# undef CONFIG_DEBUG_SPI
|
||||
#endif
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
# define CONFIG_TIMERS_CS2100CP_CLKINBW 16
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_DEBUG
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_CS2100CP_DEBUG
|
||||
# undef CONFIG_CS2100CP_REGDEBUG
|
||||
#endif
|
||||
|
||||
@@ -480,7 +480,7 @@ EXTERN const struct trace_msg_t g_usb_trace_strings_intdecode[];
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_USBDEV_TRACE) || (defined(CONFIG_DEBUG) && defined(CONFIG_DEBUG_USB))
|
||||
#if defined(CONFIG_USBDEV_TRACE) || (defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_DEBUG_USB))
|
||||
usbtrace_idset_t usbtrace_enable(usbtrace_idset_t idset);
|
||||
#else
|
||||
# define usbtrace_enable(idset)
|
||||
@@ -497,7 +497,7 @@ usbtrace_idset_t usbtrace_enable(usbtrace_idset_t idset);
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_USBDEV_TRACE) || (defined(CONFIG_DEBUG) && defined(CONFIG_DEBUG_USB))
|
||||
#if defined(CONFIG_USBDEV_TRACE) || (defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_DEBUG_USB))
|
||||
void usbtrace(uint16_t event, uint16_t value);
|
||||
#else
|
||||
# define usbtrace(event, value)
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
/* Configuration ************************************************************/
|
||||
/* Debug/Trace-related definitions */
|
||||
|
||||
#ifndef CONFIG_DEBUG
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_USB
|
||||
# undef CONFIG_DEBUG_INFO
|
||||
#endif
|
||||
@@ -115,7 +115,7 @@ extern "C"
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_DEBUG
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_INFO
|
||||
# undef CONFIG_DEBUG_USB
|
||||
#endif
|
||||
|
||||
+2
-2
@@ -186,7 +186,7 @@ int posix_spawn_file_actions_addopen(FAR posix_spawn_file_actions_t *file_action
|
||||
int posix_spawnattr_init(FAR posix_spawnattr_t *attr);
|
||||
|
||||
/* int posix_spawnattr_destroy(FAR posix_spawnattr_t *); */
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
# define posix_spawnattr_destroy(attr) (attr ? 0 : EINVAL)
|
||||
#else
|
||||
# define posix_spawnattr_destroy(attr) (0)
|
||||
@@ -234,7 +234,7 @@ int task_spawnattr_setstacksize(FAR posix_spawnattr_t *attr,
|
||||
|
||||
/* Non standard debug functions */
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
void posix_spawn_file_actions_dump(FAR posix_spawn_file_actions_t *file_actions);
|
||||
void posix_spawnattr_dump(FAR posix_spawnattr_t *attr);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user