summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2016-09-22 21:16:34 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-09-26 08:04:51 +0200
commit8b07b925ac4c40d1f8d81db71ad1be3af6769263 (patch)
tree27f16827f8bc2ec755c67a2911fcad31ac71a8e0 /common
parentb6ca0241b0ba2f166f12b9d58c608fb777ec3bd5 (diff)
downloadbarebox-8b07b925ac4c40d1f8d81db71ad1be3af6769263.tar.gz
barebox-8b07b925ac4c40d1f8d81db71ad1be3af6769263.tar.xz
environment: "wrong magic" gives the impression of an error
From 15e7ff689cfda27eab10aacda5c26a1ba47979ec Mon Sep 17 00:00:00 2001 From: Sam Ravnborg <srn@skov.dk> Date: Thu, 22 Sep 2016 06:54:42 +0200 Subject: [PATCH 1/1] environment: "wrong magic" give the impression of an error Introduce a more soft wording when the magic of the superblock does not match. Include a hint to the typical reason "(envfs never written?)" This prevents a "what is wrong?" moment when looking at the boot log. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/environment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/environment.c b/common/environment.c
index db127d71ad..c9cef6322a 100644
--- a/common/environment.c
+++ b/common/environment.c
@@ -382,7 +382,7 @@ EXPORT_SYMBOL(envfs_save);
static int envfs_check_super(struct envfs_super *super, size_t *size)
{
if (ENVFS_32(super->magic) != ENVFS_MAGIC) {
- printf("envfs: wrong magic\n");
+ printf("envfs: no envfs (magic mismatch) - envfs newer written?\n");
return -EIO;
}