fix: modify the review problem of osal

Signed-off-by: zhang <zhangfengxi@huawei.com>
This commit is contained in:
zhang
2022-03-14 10:16:34 +08:00
parent af6b78988a
commit 33762dc035
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ static int HdfClassInit(void)
ret = class_register(&g_hdfClass);
if (ret) {
HDF_LOGE("fail to register hdf class");
HDF_LOGE("failed to register hdf class");
return ret;
}
HDF_LOGI("register hdf class success");
+3 -3
View File
@@ -36,7 +36,7 @@ int32_t OsalFileOpen(OsalFile *file, const char *path, int flags, uint32_t right
fp = filp_open(path, flags, rights);
if (IS_ERR_OR_NULL(fp)) {
HDF_LOGE("%s open file fail %d %d", __func__, flags, rights);
HDF_LOGE("%s open file fail %d %u", __func__, flags, rights);
return HDF_FAILURE;
}
@@ -64,7 +64,7 @@ ssize_t OsalFileWrite(OsalFile *file, const void *string, uint32_t length)
ret = vfs_write(fp, string, length, &pos);
set_fs(org_fs);
if (ret < 0) {
HDF_LOGE("%s write file length %d fail %d", __func__, length, ret);
HDF_LOGE("%s write file length %u fail %d", __func__, length, ret);
return HDF_FAILURE;
}
@@ -105,7 +105,7 @@ ssize_t OsalFileRead(OsalFile *file, void *buf, uint32_t length)
ret = vfs_read(fp, buf, length, &pos);
set_fs(org_fs);
if (ret < 0) {
HDF_LOGE("%s read file length %d fail %d", __func__, length, ret);
HDF_LOGE("%s read file length %u fail %d", __func__, length, ret);
return HDF_FAILURE;
}