[PATCH 1/1] fs: fs_devread should log error when read outside partition

Tony Dinh mibodhi at gmail.com
Wed May 21 01:49:24 CEST 2025


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 at gmail.com>
---

 fs/fs_internal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 	}
 
-- 
2.39.5



More information about the U-Boot mailing list