summaryrefslogtreecommitdiff
path: root/components/drivers/sdio
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-03-07 17:03:23 +0800
committerGitHub <[email protected]>2019-03-07 17:03:23 +0800
commitce2cbb42ecb7f9633b648060708a13d0f478ef7c (patch)
tree74c842d5da03de26d3e6b7399dc32eaaff86c4fa /components/drivers/sdio
parenta041f768a663120a43c41b19148e40df3e78f0d2 (diff)
parent4f7c06f9232d30e768c1fd4925414e446e4ca585 (diff)
Merge pull request #2388 from armink/fix_rtdbg
Remove the DBG_COLOR and DBG_ENABLE definition.
Diffstat (limited to 'components/drivers/sdio')
-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
5 files changed, 1 insertions, 11 deletions
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