From 05f68ec9fdc9c32d497134727e58c9fc41416d59 Mon Sep 17 00:00:00 2001 From: Patrick Delaunay Date: Thu, 10 Nov 2022 11:49:04 +0100 Subject: [PATCH] env: mmc: add debug message when mmc-env-partition is not found Add a debug message to indicate a potential issue when "u-boot,mmc-env-partition" is present in config node of device tree but this partition name is not found in the mmc device. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- env/mmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/env/mmc.c b/env/mmc.c index bd7d51e6b6..8941e0f5ff 100644 --- a/env/mmc.c +++ b/env/mmc.c @@ -120,6 +120,7 @@ static inline s64 mmc_offset(int copy) err = mmc_offset_try_partition(str, copy, &val); if (!err) return val; + debug("env partition '%s' not found (%d)", str, err); } /* try the GPT partition with "U-Boot ENV" TYPE GUID */ -- 2.39.5