summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authorarmink <[email protected]>2019-03-06 17:07:15 +0800
committerarmink <[email protected]>2019-03-06 17:54:30 +0800
commit0d7ba79219f939ad0dc55eb70872e11c950b0da8 (patch)
treefe8f73a1822d3cdbdd939159023023d9dff3a882 /components/drivers
parent85a0aaa3c2dc2f563ca25a91a00c033eddbb78d2 (diff)
Remove the DBG_COLOR and DBG_ENABLE definition.
Diffstat (limited to 'components/drivers')
-rw-r--r--components/drivers/misc/adc.c2
-rw-r--r--components/drivers/sdio/block_dev.c4
-rw-r--r--components/drivers/sdio/mmc.c2
-rw-r--r--components/drivers/sdio/mmcsd_core.c2
-rw-r--r--components/drivers/sdio/sd.c2
-rw-r--r--components/drivers/sdio/sdio.c2
-rw-r--r--components/drivers/sensors/sensor.c2
-rw-r--r--components/drivers/sensors/sensor_cmd.c2
-rw-r--r--components/drivers/serial/serial.c4
-rw-r--r--components/drivers/wlan/wlan_cfg.c2
-rw-r--r--components/drivers/wlan/wlan_dev.c2
-rw-r--r--components/drivers/wlan/wlan_lwip.c2
-rw-r--r--components/drivers/wlan/wlan_mgnt.c3
-rw-r--r--components/drivers/wlan/wlan_prot.c2
-rw-r--r--components/drivers/wlan/wlan_workqueue.c2
15 files changed, 3 insertions, 32 deletions
diff --git a/components/drivers/misc/adc.c b/components/drivers/misc/adc.c
index 83e789a6e4..b2fd9ba430 100644
--- a/components/drivers/misc/adc.c
+++ b/components/drivers/misc/adc.c
@@ -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)
diff --git a/components/drivers/sdio/block_dev.c b/components/drivers/sdio/block_dev.c
index 23be319fc6..dcfbc0ca7b 100644
--- a/components/drivers/sdio/block_dev.c
+++ b/components/drivers/sdio/block_dev.c
@@ -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);
diff --git a/components/drivers/sdio/mmc.c b/components/drivers/sdio/mmc.c
index bbf0ff838c..5f9259ef52 100644
--- a/components/drivers/sdio/mmc.c
+++ b/components/drivers/sdio/mmc.c
@@ -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[] =
diff --git a/components/drivers/sdio/mmcsd_core.c b/components/drivers/sdio/mmcsd_core.c
index 2206960a69..160defa645 100644
--- a/components/drivers/sdio/mmcsd_core.c
+++ b/components/drivers/sdio/mmcsd_core.c
@@ -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
diff --git a/components/drivers/sdio/sd.c b/components/drivers/sdio/sd.c
index 69a4561fb0..f4e925507c 100644
--- a/components/drivers/sdio/sd.c
+++ b/components/drivers/sdio/sd.c
@@ -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[] =
diff --git a/components/drivers/sdio/sdio.c b/components/drivers/sdio/sdio.c
index 6045c4ade8..b0516704fd 100644
--- a/components/drivers/sdio/sdio.c
+++ b/components/drivers/sdio/sdio.c
@@ -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
diff --git a/components/drivers/sensors/sensor.c b/components/drivers/sensors/sensor.c
index 0c21f04b6f..99f366ddac 100644
--- a/components/drivers/sensors/sensor.c
+++ b/components/drivers/sensors/sensor.c
@@ -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>
diff --git a/components/drivers/sensors/sensor_cmd.c b/components/drivers/sensors/sensor_cmd.c
index b6dd471988..07487c8866 100644
--- a/components/drivers/sensors/sensor_cmd.c
+++ b/components/drivers/sensors/sensor_cmd.c
@@ -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>
diff --git a/components/drivers/serial/serial.c b/components/drivers/serial/serial.c
index 094c403656..13bf54e721 100644
--- a/components/drivers/serial/serial.c
+++ b/components/drivers/serial/serial.c
@@ -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
diff --git a/components/drivers/wlan/wlan_cfg.c b/components/drivers/wlan/wlan_cfg.c
index 27da9bc24e..00e9dbc83e 100644
--- a/components/drivers/wlan/wlan_cfg.c
+++ b/components/drivers/wlan/wlan_cfg.c
@@ -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))
diff --git a/components/drivers/wlan/wlan_dev.c b/components/drivers/wlan/wlan_dev.c
index eac1d0f975..3f4adf35ad 100644
--- a/components/drivers/wlan/wlan_dev.c
+++ b/components/drivers/wlan/wlan_dev.c
@@ -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
diff --git a/components/drivers/wlan/wlan_lwip.c b/components/drivers/wlan/wlan_lwip.c
index 2f8bcefd0d..052c2afd2e 100644
--- a/components/drivers/wlan/wlan_lwip.c
+++ b/components/drivers/wlan/wlan_lwip.c
@@ -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
diff --git a/components/drivers/wlan/wlan_mgnt.c b/components/drivers/wlan/wlan_mgnt.c
index ac0731d06c..ced5bfa1c2 100644
--- a/components/drivers/wlan/wlan_mgnt.c
+++ b/components/drivers/wlan/wlan_mgnt.c
@@ -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
diff --git a/components/drivers/wlan/wlan_prot.c b/components/drivers/wlan/wlan_prot.c
index ec5e419bc4..48adbc48f3 100644
--- a/components/drivers/wlan/wlan_prot.c
+++ b/components/drivers/wlan/wlan_prot.c
@@ -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
diff --git a/components/drivers/wlan/wlan_workqueue.c b/components/drivers/wlan/wlan_workqueue.c
index f65ac95d08..23823afae0 100644
--- a/components/drivers/wlan/wlan_workqueue.c
+++ b/components/drivers/wlan/wlan_workqueue.c
@@ -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