fs: fs_devread should log error when read outside partition
Log the error if fs_devread() fails when trying to reading outside
partition. This will make bug reporting easier.
Signed-off-by: Tony Dinh <mibodhi@gmail.com>
diff --git a/fs/fs_internal.c b/fs/fs_internal.c
index ab4847a..ff27c56 100644
--- a/fs/fs_internal.c
+++ b/fs/fs_internal.c
@@ -28,7 +28,7 @@
/* Check partition boundaries */
if ((sector + ((byte_offset + byte_len - 1) >> log2blksz))
>= partition->size) {
- log_debug("read outside partition " LBAFU "\n", sector);
+ log_err("** Read outside partition " LBAFU "\n", sector);
return 0;
}