Skip to content

Commit 2cb4d41

Browse files
de-nordicMaureenHelm
authored andcommitted
fs: Correct LOG_ERR messages for directory API calss
The commit changes messages of VFS API LOG_ERR calls to distinguish between file and directory operations. Signed-off-by: Dominik Ermel <[email protected]>
1 parent 918108a commit 2cb4d41

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

subsys/fs/fs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ int fs_opendir(struct fs_dir_t *zdp, const char *abs_path)
323323

324324
if ((abs_path == NULL) ||
325325
(strlen(abs_path) < 1) || (abs_path[0] != '/')) {
326-
LOG_ERR("invalid file name!!");
326+
LOG_ERR("invalid directory name!!");
327327
return -EINVAL;
328328
}
329329

@@ -479,7 +479,7 @@ int fs_mkdir(const char *abs_path)
479479

480480
if ((abs_path == NULL) ||
481481
(strlen(abs_path) <= 1) || (abs_path[0] != '/')) {
482-
LOG_ERR("invalid file name!!");
482+
LOG_ERR("invalid directory name!!");
483483
return -EINVAL;
484484
}
485485

@@ -585,7 +585,7 @@ int fs_stat(const char *abs_path, struct fs_dirent *entry)
585585

586586
if ((abs_path == NULL) ||
587587
(strlen(abs_path) <= 1) || (abs_path[0] != '/')) {
588-
LOG_ERR("invalid file name!!");
588+
LOG_ERR("invalid file or dir name!!");
589589
return -EINVAL;
590590
}
591591

@@ -615,7 +615,7 @@ int fs_statvfs(const char *abs_path, struct fs_statvfs *stat)
615615

616616
if ((abs_path == NULL) ||
617617
(strlen(abs_path) <= 1) || (abs_path[0] != '/')) {
618-
LOG_ERR("invalid file name!!");
618+
LOG_ERR("invalid file or dir name!!");
619619
return -EINVAL;
620620
}
621621

0 commit comments

Comments
 (0)