projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bmips: enable ar-5387un enet support
[oweals/u-boot.git]
/
env
/
env.c
diff --git
a/env/env.c
b/env/env.c
index e033b461244808b81df25aa0e02785e5f3c30463..afed0f3c95c3c173edc30c2e7cb04ab351955504 100644
(file)
--- a/
env/env.c
+++ b/
env/env.c
@@
-186,14
+186,18
@@
int env_load(void)
continue;
printf("Loading Environment from %s... ", drv->name);
continue;
printf("Loading Environment from %s... ", drv->name);
+ /*
+ * In error case, the error message must be printed during
+ * drv->load() in some underlying API, and it must be exactly
+ * one message.
+ */
ret = drv->load();
ret = drv->load();
- if (ret)
-
printf
("Failed (%d)\n", ret);
- else
+ if (ret)
{
+
debug
("Failed (%d)\n", ret);
+ } else {
printf("OK\n");
printf("OK\n");
-
- if (!ret)
return 0;
return 0;
+ }
}
/*
}
/*