summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Dinh <[email protected]>2025-05-20 16:49:24 -0700
committerTom Rini <[email protected]>2025-05-23 10:42:31 -0600
commitec3ce603cd9840492d60230f164533ad4574489f (patch)
tree34082f49e69e9eaca6ce00868b3af7df20e580e3
parentab0e1c11a9e2591371474d9567db80ffc9060e1a (diff)
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 <[email protected]>
-rw-r--r--fs/fs_internal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fs_internal.c b/fs/fs_internal.c
index ab4847ac257..ff27c564efc 100644
--- a/fs/fs_internal.c
+++ b/fs/fs_internal.c
@@ -28,7 +28,7 @@ int fs_devread(struct blk_desc *blk, struct disk_partition *partition,
/* 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;
}