diff mbox series

[RFC,v3,1/2] env: Don't print "Failed" error message

Message ID 20180719222843.28316-2-semen.protsenko@linaro.org
State Superseded
Headers show
Series env: Make environment loading log more clear | expand

Commit Message

Sam Protsenko July 19, 2018, 10:28 p.m. UTC
This only clutters the log with unnecessary details, as we already have
all needed warnings by the time. Example:

    Loading Environment from FAT... MMC: no card present
    ** Bad device mmc 0 **
    Failed (-5)

Remove this "Failed" message to keep log short and clear.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
---
 env/env.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/env/env.c b/env/env.c
index 5c0842ac07..3ab4ec4237 100644
--- a/env/env.c
+++ b/env/env.c
@@ -196,9 +196,7 @@  int env_load(void)
 
 		printf("Loading Environment from %s... ", drv->name);
 		ret = drv->load();
-		if (ret)
-			printf("Failed (%d)\n", ret);
-		else
+		if (!ret)
 			printf("OK\n");
 
 		if (!ret)