提交 278dfebd 编写于 作者: Y YOUR_NAME

fix: 定义宏BUS_DEBUG,打开调试功能,编译不过

close: #I3SZO4
Signed-off-by: Nzff <zhangfanfan2@huawei.com>
Change-Id: Idc9051c452fd3f1dcf87c840df74b85b7ea73dc6
上级 c377a52a
...@@ -985,7 +985,7 @@ device_set_desc_internal(device_t dev, const char* desc, int copy) ...@@ -985,7 +985,7 @@ device_set_desc_internal(device_t dev, const char* desc, int copy)
dev->desc = bsd_malloc(strlen(desc) + 1, M_BUS, M_NOWAIT); dev->desc = bsd_malloc(strlen(desc) + 1, M_BUS, M_NOWAIT);
if (dev->desc) { if (dev->desc) {
if (strcpy_s(dev->desc, strlen(desc) + 1, desc) != EOK) { if (strcpy_s(dev->desc, strlen(desc) + 1, desc) != EOK) {
PDEBUG("desc internal copy desc failed!\n"); PDEBUG(("desc internal copy desc failed!\n"));
} }
dev->flags |= DF_DESCMALLOCED; dev->flags |= DF_DESCMALLOCED;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册