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 <[email protected]>
---
v2 -> v3:
  - no change
---
 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


Reply via email to