[U-Boot] [PATCH] mmc: show error message when "mmc dev" command fails
Masahiro Yamada
yamada.masahiro at socionext.com
Fri Feb 12 15:55:46 CET 2016
2016-02-11 1:27 GMT+09:00 Stephen Warren <swarren at wwwdotorg.org>:
> On 02/10/2016 05:46 AM, Masahiro Yamada wrote:
>>
>> Currently, "mmc dev" can silently fail. In case of failure, tell
>> the user about it.
>
>
> Does it make sense to print this error inside init_mmc_device() instead, so
> that we don't have to add printf()s to all call sites?
>
> I'm not sure the answer to my question is yes; just something to ponder.
I guess it makes sense.
(I have not taken a close look, though)
> Also note that one disadvantage of printing error messages all the time is
> that the distro boot scripts (by default) attempt to probe all defined
> storage devices, so printing errors will make that noisy. Perhaps that
> should be solved by adding a -q option (for "quiet") so those scripts can be
> non-noisy?
Sounds reasonable, too.
--
Best Regards
Masahiro Yamada
More information about the U-Boot
mailing list