]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
env_mmc: Properly prefix mmc errors with '!'
authorHans de Goede <hdegoede@redhat.com>
Sat, 15 Aug 2015 18:05:01 +0000 (20:05 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 09:29:49 +0000 (11:29 +0200)
commite8be47969fca034efa9c9f1e5717992b67e6fdfe
treed417c2e189414fe18bd06e842e89be1ab9aa9292
parenteff96e99588f9aad8325bcb5206c21b3075c7634
env_mmc: Properly prefix mmc errors with '!'

The set_default_env() function from env_common.c expects either
a fully formatted error msg, e.g.: "## Resetting to default environment\n"
or an error msg prefixed with an !, in which case it will format it.

Fix the init_mmc_for_env() error messages to be prefixed with a !
this changes the bootup-log on sunxi when no mmc card is found from:

MMC:   SUNXI SD/MMC: 0
No MMC card foundIn:    serial
Out:   serial

To:

MMC:   SUNXI SD/MMC: 0
*** Warning - No MMC card found, using default environment

In:    serial
Out:   serial

Which clearly is how things should look.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
common/env_mmc.c