瀏覽代碼

fix use printf format bug

fix use printf format bug
HubretXie 6 年之前
父節點
當前提交
25cdd8bba9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/dfs/src/dfs_fs.c

+ 1 - 1
components/dfs/src/dfs_fs.c

@@ -55,7 +55,7 @@ int dfs_register(const struct dfs_filesystem_ops *ops)
     if (empty == NULL)
     if (empty == NULL)
     {
     {
         rt_set_errno(-ENOSPC);
         rt_set_errno(-ENOSPC);
-        LOG_E("There is no space to register this file system (%d).", ops->name);
+        LOG_E("There is no space to register this file system (%s).", ops->name);
         ret = -1;
         ret = -1;
     }
     }
     else if (ret == RT_EOK)
     else if (ret == RT_EOK)