Skip to content

Commit 7357abd

Browse files
GuEe-GUIRbb666
authored andcommitted
[dm][core] cleanup format
Signed-off-by: GuEe-GUI <[email protected]>
1 parent c74148a commit 7357abd

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

components/drivers/core/dm.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
#include <rtthread.h>
1212

13+
#define DBG_TAG "rtdm"
14+
#define DBG_LVL DBG_INFO
15+
#include <rtdbg.h>
16+
1317
#ifdef RT_USING_OFW
1418
#include <drivers/ofw_io.h>
1519
#include <drivers/ofw_irq.h>
@@ -445,7 +449,7 @@ void rt_dm_dev_bind_fwdata(rt_device_t dev, void *fw_np, void *data)
445449

446450
if (dev->ofw_node == RT_NULL)
447451
{
448-
rt_kprintf("[%s:%s] line=%d ofw_node is NULL\r\n", __FILE__, __func__, __LINE__);
452+
LOG_D("[%s:%s] line=%d ofw_node is NULL", __FILE__, __func__, __LINE__);
449453
return;
450454
}
451455

@@ -468,7 +472,7 @@ void rt_dm_dev_unbind_fwdata(rt_device_t dev, void *fw_np)
468472

469473
if (dev_fw_np == RT_NULL)
470474
{
471-
rt_kprintf("[%s:%s] line=%d dev_fw_np is NULL\r\n", __FILE__, __func__, __LINE__);
475+
LOG_D("[%s:%s] line=%d dev_fw_np is NULL", __FILE__, __func__, __LINE__);
472476
return;
473477
}
474478

@@ -597,4 +601,3 @@ rt_bool_t rt_dm_dev_prop_read_bool(rt_device_t dev, const char *propname)
597601

598602
return RT_FALSE;
599603
}
600-

components/drivers/include/drivers/core/master_id.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
/* TTY */
8484
#define MASTER_ID_TTY 141
8585
#define MASTER_ID_TTY_SLAVES 142
86-
#define MASTER_ID_TTY_ALTERNATE 143
86+
#define MASTER_ID_TTY_ALTERNATE 143
8787
#define MASTER_ID_PTMX 144
8888

8989
/* USB */

0 commit comments

Comments
 (0)