mirror of
https://github.com/openharmony/drivers_adapter_khdf_linux.git
synced 2026-07-21 03:55:21 -04:00
fix: modify the review problem of osal
Signed-off-by: zhang <zhangfengxi@huawei.com>
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user