summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authorGuEe-GUI <[email protected]>2025-12-09 17:21:24 +0800
committerR b b666 <[email protected]>2025-12-09 21:04:16 +0800
commit7357abdc37a05fc8f78708ef4a60cffa322d6a0b (patch)
tree31d12f27c5fda12cec9fb3f24ae14cba4ddd7dcb /components/drivers
parentc74148a8b3abb26b4d927f2143a8dc0027aec2fd (diff)
[dm][core] cleanup format
Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers')
-rw-r--r--components/drivers/core/dm.c9
-rw-r--r--components/drivers/include/drivers/core/master_id.h2
2 files changed, 7 insertions, 4 deletions
diff --git a/components/drivers/core/dm.c b/components/drivers/core/dm.c
index b11dd058e1..34d7e721fd 100644
--- a/components/drivers/core/dm.c
+++ b/components/drivers/core/dm.c
@@ -10,6 +10,10 @@
#include <rtthread.h>
+#define DBG_TAG "rtdm"
+#define DBG_LVL DBG_INFO
+#include <rtdbg.h>
+
#ifdef RT_USING_OFW
#include <drivers/ofw_io.h>
#include <drivers/ofw_irq.h>
@@ -445,7 +449,7 @@ void rt_dm_dev_bind_fwdata(rt_device_t dev, void *fw_np, void *data)
if (dev->ofw_node == RT_NULL)
{
- rt_kprintf("[%s:%s] line=%d ofw_node is NULL\r\n", __FILE__, __func__, __LINE__);
+ LOG_D("[%s:%s] line=%d ofw_node is NULL", __FILE__, __func__, __LINE__);
return;
}
@@ -468,7 +472,7 @@ void rt_dm_dev_unbind_fwdata(rt_device_t dev, void *fw_np)
if (dev_fw_np == RT_NULL)
{
- rt_kprintf("[%s:%s] line=%d dev_fw_np is NULL\r\n", __FILE__, __func__, __LINE__);
+ LOG_D("[%s:%s] line=%d dev_fw_np is NULL", __FILE__, __func__, __LINE__);
return;
}
@@ -597,4 +601,3 @@ rt_bool_t rt_dm_dev_prop_read_bool(rt_device_t dev, const char *propname)
return RT_FALSE;
}
-
diff --git a/components/drivers/include/drivers/core/master_id.h b/components/drivers/include/drivers/core/master_id.h
index 90f2699631..5bf9e611cb 100644
--- a/components/drivers/include/drivers/core/master_id.h
+++ b/components/drivers/include/drivers/core/master_id.h
@@ -83,7 +83,7 @@
/* TTY */
#define MASTER_ID_TTY 141
#define MASTER_ID_TTY_SLAVES 142
-#define MASTER_ID_TTY_ALTERNATE 143
+#define MASTER_ID_TTY_ALTERNATE 143
#define MASTER_ID_PTMX 144
/* USB */