summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--env/env.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/env/env.c b/env/env.c
index 69848fb060..06078c7f37 100644
--- a/env/env.c
+++ b/env/env.c
@@ -311,11 +311,15 @@ int env_erase(void)
if (drv) {
int ret;
- if (!drv->erase)
+ if (!drv->erase) {
+ printf("not possible\n");
return -ENODEV;
+ }
- if (!env_has_inited(drv->location))
+ if (!env_has_inited(drv->location)) {
+ printf("not initialized\n");
return -ENODEV;
+ }
printf("Erasing Environment on %s... ", drv->name);
ret = drv->erase();