mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
env: Make the env save message a bit more explicit
Since we'll soon have support for multiple environments, the environment saving message might end up being printed multiple times if the higher priority environment cannot be used. That might confuse the user, so let's make it explicit if the operation failed or not. Reviewed-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
This commit is contained in:
parent
8a3a7e2270
commit
9efac3c805
1 changed files with 2 additions and 1 deletions
3
env/env.c
vendored
3
env/env.c
vendored
|
@ -168,8 +168,9 @@ int env_save(void)
|
|||
if (!drv->save)
|
||||
continue;
|
||||
|
||||
printf("Saving Environment to %s...\n", drv->name);
|
||||
printf("Saving Environment to %s... ", drv->name);
|
||||
ret = drv->save();
|
||||
printf("%s\n", ret ? "Failed" : "OK");
|
||||
if (!ret)
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue