提交 666370ea 编写于 作者: O openharmony_ci 提交者: Gitee

!20 定义宏BUS_DEBUG,打开调试功能,编译不过

Merge pull request !20 from zhangfanfan2/master
......@@ -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);
if (dev->desc) {
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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册