]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
env: mmc: add debug message when mmc-env-partition is not found
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Thu, 10 Nov 2022 10:49:04 +0000 (11:49 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 10 Jan 2023 17:37:09 +0000 (12:37 -0500)
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 <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
env/mmc.c

index bd7d51e6b633c2e5de7e746170b337b86d5b1cfb..8941e0f5ff3966c87568431f270f22f2432776ec 100644 (file)
--- 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 */