[PATCH v2 2/3] startup: bump down log message about lack of persistent environment
Ahmad Fatoum
a.fatoum at pengutronix.de
Thu Dec 11 12:48:11 PST 2025
Not having a persisted environment is expected behavior in some configurations,
so emit it at info log level.
While at it, reword in preparation for the follow-up commit.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
common/startup.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/common/startup.c b/common/startup.c
index 53003b88bc1b..b6f8a49bb94b 100644
--- a/common/startup.c
+++ b/common/startup.c
@@ -99,12 +99,10 @@ static int load_environment(void)
ERR_PTR(ret));
}
- if (IS_ENABLED(CONFIG_ENV_HANDLING)) {
+ if (IS_ENABLED(CONFIG_ENV_HANDLING))
envfs_load(default_environment_path, "/env", 0);
- } else {
- if (IS_ENABLED(CONFIG_DEFAULT_ENVIRONMENT))
- pr_notice("No support for persistent environment. Using default environment\n");
- }
+ else if (IS_ENABLED(CONFIG_DEFAULT_ENVIRONMENT))
+ pr_info("external environment support disabled. Using default environment\n");
nvvar_load();
--
2.47.3
More information about the barebox
mailing list