Skip to content

Commit

Permalink
[LFS] Fixing mount error reporting (zephyrproject-rtos#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
msnahal committed Jun 8, 2022
1 parent 7eed017 commit 5ca7e7f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions subsys/fs/littlefs_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,9 +846,13 @@ static int littlefs_mount(struct fs_mount_t *mountp)
ret = lfs_to_errno(ret);
goto out;
}
}
} else if (ret < 0) {
LOG_WRN("can't mount (LFS %d); formatting is disabled", ret);
ret = lfs_to_errno(ret);
goto out;
}

LOG_INF("%s mounted", log_strdup(mountp->mnt_point));
LOG_INF("%s mounted", log_strdup(mountp->mnt_point));

out:
if (ret < 0) {
Expand Down

0 comments on commit 5ca7e7f

Please sign in to comment.