Skip to content

Commit ac5cdcd

Browse files
de-nordickartben
authored andcommitted
fs/littlefs: Log error code on failed flash_area_open
Log error code to make it easier to investigate problems. Signed-off-by: Dominik Ermel <[email protected]>
1 parent 490da9e commit ac5cdcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/fs/littlefs_fs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ static int littlefs_flash_init(struct fs_littlefs *fs, void *dev_id)
657657
/* Open flash area */
658658
ret = flash_area_open(area_id, fap);
659659
if ((ret < 0) || (*fap == NULL)) {
660-
LOG_ERR("can't open flash area %d", area_id);
660+
LOG_ERR("can't open flash area %d, err %d", area_id, ret);
661661
return -ENODEV;
662662
}
663663

0 commit comments

Comments
 (0)