mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-24 22:04:54 +08:00
Remove the DBG_COLOR and DBG_ENABLE definition.
This commit is contained in:
@@ -15,10 +15,8 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define DBG_ENABLE
|
||||
#define DBG_SECTION_NAME "adc"
|
||||
#define DBG_LEVEL DBG_INFO
|
||||
#define DBG_COLOR
|
||||
#include <rtdbg.h>
|
||||
|
||||
static rt_size_t _adc_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size)
|
||||
|
||||
@@ -13,14 +13,12 @@
|
||||
|
||||
#include <drivers/mmcsd_core.h>
|
||||
|
||||
#define DBG_ENABLE
|
||||
#define DBG_SECTION_NAME "SDIO"
|
||||
#ifdef RT_SDIO_DEBUG
|
||||
#define DBG_LEVEL DBG_LOG
|
||||
#else
|
||||
#define DBG_LEVEL DBG_INFO
|
||||
#endif /* RT_SDIO_DEBUG */
|
||||
#define DBG_COLOR
|
||||
#include <rtdbg.h>
|
||||
|
||||
static rt_list_t blk_devices = RT_LIST_OBJECT_INIT(blk_devices);
|
||||
@@ -369,7 +367,7 @@ rt_int32_t rt_mmcsd_blk_probe(struct rt_mmcsd_card *card)
|
||||
return err;
|
||||
}
|
||||
|
||||
LOG_I("probe mmcsd block device!");
|
||||
LOG_D("probe mmcsd block device!");
|
||||
|
||||
/* get the first sector to read partition table */
|
||||
sector = (rt_uint8_t *)rt_malloc(SECTOR_SIZE);
|
||||
|
||||
@@ -11,14 +11,12 @@
|
||||
#include <drivers/mmcsd_core.h>
|
||||
#include <drivers/mmc.h>
|
||||
|
||||
#define DBG_ENABLE
|
||||
#define DBG_SECTION_NAME "SDIO"
|
||||
#ifdef RT_SDIO_DEBUG
|
||||
#define DBG_LEVEL DBG_LOG
|
||||
#else
|
||||
#define DBG_LEVEL DBG_INFO
|
||||
#endif /* RT_SDIO_DEBUG */
|
||||
#define DBG_COLOR
|
||||
#include <rtdbg.h>
|
||||
|
||||
static const rt_uint32_t tran_unit[] =
|
||||
|
||||
@@ -14,14 +14,12 @@
|
||||
#include <drivers/mmc.h>
|
||||
#include <drivers/sdio.h>
|
||||
|
||||
#define DBG_ENABLE
|
||||
#define DBG_SECTION_NAME "SDIO"
|
||||
#ifdef RT_SDIO_DEBUG
|
||||
#define DBG_LEVEL DBG_LOG
|
||||
#else
|
||||
#define DBG_LEVEL DBG_INFO
|
||||
#endif /* RT_SDIO_DEBUG */
|
||||
#define DBG_COLOR
|
||||
#include <rtdbg.h>
|
||||
|
||||
#ifndef RT_MMCSD_STACK_SIZE
|
||||
|
||||
@@ -11,14 +11,12 @@
|
||||
#include <drivers/mmcsd_core.h>
|
||||
#include <drivers/sd.h>
|
||||
|
||||
#define DBG_ENABLE
|
||||
#define DBG_SECTION_NAME "SDIO"
|
||||
#ifdef RT_SDIO_DEBUG
|
||||
#define DBG_LEVEL DBG_LOG
|
||||
#else
|
||||
#define DBG_LEVEL DBG_INFO
|
||||
#endif /* RT_SDIO_DEBUG */
|
||||
#define DBG_COLOR
|
||||
#include <rtdbg.h>
|
||||
|
||||
static const rt_uint32_t tran_unit[] =
|
||||
|
||||
@@ -12,14 +12,12 @@
|
||||
#include <drivers/sdio.h>
|
||||
#include <drivers/sd.h>
|
||||
|
||||
#define DBG_ENABLE
|
||||
#define DBG_SECTION_NAME "SDIO"
|
||||
#ifdef RT_SDIO_DEBUG
|
||||
#define DBG_LEVEL DBG_LOG
|
||||
#else
|
||||
#define DBG_LEVEL DBG_INFO
|
||||
#endif /* RT_SDIO_DEBUG */
|
||||
#define DBG_COLOR
|
||||
#include <rtdbg.h>
|
||||
|
||||
#ifndef RT_SDIO_STACK_SIZE
|
||||
|
||||
@@ -10,10 +10,8 @@
|
||||
|
||||
#include "sensor.h"
|
||||
|
||||
#define DBG_ENABLE
|
||||
#define DBG_LEVEL DBG_INFO
|
||||
#define DBG_SECTION_NAME "sensor"
|
||||
#define DBG_COLOR
|
||||
#include <rtdbg.h>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
@@ -10,10 +10,8 @@
|
||||
|
||||
#include "sensor.h"
|
||||
|
||||
#define DBG_ENABLE
|
||||
#define DBG_LEVEL DBG_INFO
|
||||
#define DBG_SECTION_NAME "sensor.cmd"
|
||||
#define DBG_COLOR
|
||||
#include <rtdbg.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -28,10 +28,8 @@
|
||||
#include <rtthread.h>
|
||||
#include <rtdevice.h>
|
||||
|
||||
// #define DEBUG_ENABLE
|
||||
#define DEBUG_LEVEL DBG_LOG
|
||||
#define DBG_LEVEL DBG_INFO
|
||||
#define DBG_SECTION_NAME "UART"
|
||||
#define DEBUG_COLOR
|
||||
#include <rtdbg.h>
|
||||
|
||||
#ifdef RT_USING_POSIX
|
||||
|
||||
@@ -11,14 +11,12 @@
|
||||
#include <rtthread.h>
|
||||
#include <wlan_cfg.h>
|
||||
|
||||
#define DBG_ENABLE
|
||||
#ifdef RT_WLAN_CFG_DEBUG
|
||||
#define DBG_LEVEL DBG_LOG
|
||||
#else
|
||||
#define DBG_LEVEL DBG_INFO
|
||||
#endif
|
||||
#define DBG_SECTION_NAME "WLAN.cfg"
|
||||
#define DBG_COLOR
|
||||
#include <rtdbg.h>
|
||||
|
||||
#define WLAN_CFG_LOCK() (rt_mutex_take(&cfg_mutex, RT_WAITING_FOREVER))
|
||||
|
||||
@@ -13,14 +13,12 @@
|
||||
#include <wlan_dev.h>
|
||||
#include <wlan_prot.h>
|
||||
|
||||
#define DBG_ENABLE
|
||||
#ifdef RT_WLAN_DEV_DEBUG
|
||||
#define DBG_LEVEL DBG_LOG
|
||||
#else
|
||||
#define DBG_LEVEL DBG_INFO
|
||||
#endif
|
||||
#define DBG_SECTION_NAME "WLAN.dev"
|
||||
#define DBG_COLOR
|
||||
#include <rtdbg.h>
|
||||
|
||||
#ifndef RT_DEVICE
|
||||
|
||||
@@ -21,14 +21,12 @@
|
||||
#include <dhcp_server.h>
|
||||
#endif
|
||||
|
||||
#define DBG_ENABLE
|
||||
#ifdef RT_WLAN_LWIP_DEBUG
|
||||
#define DBG_LEVEL DBG_LOG
|
||||
#else
|
||||
#define DBG_LEVEL DBG_INFO
|
||||
#endif
|
||||
#define DBG_SECTION_NAME "WLAN.lwip"
|
||||
#define DBG_COLOR
|
||||
#include <rtdbg.h>
|
||||
|
||||
#ifndef IPADDR_STRLEN_MAX
|
||||
|
||||
@@ -16,14 +16,13 @@
|
||||
#include <wlan_prot.h>
|
||||
#include <wlan_workqueue.h>
|
||||
|
||||
#define DBG_ENABLE
|
||||
|
||||
#ifdef RT_WLAN_MGNT_DEBUG
|
||||
#define DBG_LEVEL DBG_LOG
|
||||
#else
|
||||
#define DBG_LEVEL DBG_INFO
|
||||
#endif
|
||||
#define DBG_SECTION_NAME "WLAN.mgnt"
|
||||
#define DBG_COLOR
|
||||
#include <rtdbg.h>
|
||||
|
||||
#ifndef RT_WLAN_DEVICE
|
||||
|
||||
@@ -13,14 +13,12 @@
|
||||
#include <wlan_dev.h>
|
||||
#include <wlan_prot.h>
|
||||
|
||||
#define DBG_ENABLE
|
||||
#ifdef RT_WLAN_PROT_DEBUG
|
||||
#define DBG_LEVEL DBG_LOG
|
||||
#else
|
||||
#define DBG_LEVEL DBG_INFO
|
||||
#endif
|
||||
#define DBG_SECTION_NAME "WLAN.prot"
|
||||
#define DBG_COLOR
|
||||
#include <rtdbg.h>
|
||||
|
||||
#if RT_WLAN_PROT_NAME_LEN < 4
|
||||
|
||||
@@ -13,10 +13,8 @@
|
||||
#include <wlan_workqueue.h>
|
||||
#include <ipc/workqueue.h>
|
||||
|
||||
#define DBG_ENABLE
|
||||
#define DBG_LEVEL DBG_INFO
|
||||
#define DBG_SECTION_NAME "WLAN.work"
|
||||
#define DBG_COLOR
|
||||
#include <rtdbg.h>
|
||||
|
||||
struct rt_wlan_work
|
||||
|
||||
Reference in New Issue
Block a user