Re: [PATCH] boot: make it a little bit less verbose

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 18, 2019 at 07:50:51PM -0500, Vivien Didelot wrote:
> The current boot code prints too much error messages without much value
> in them. This patch prints the error string when it makes sense and
> simplifies the return path of bootscript_boot(). Make use of pr_err()
> in boot_entry() which is the shared code responsible for calling the
> boot_entry->boot callback. Remove the unnecessary print statement
> from bootsource_action() as well.
> 
> This removes a single print statement ATM, allowing us to go from this:
> 
>     booting 'sd'
>     Cannot set parameter mci0.probe: No such device
>     running automount command 'mci${global.sd}.probe=1 && mount /dev/disk${global.sd}.0 /mnt/sd' failed
>     could not open /mnt/sd/zImage: No such device
>     ERROR: Booting 'sd' failed: No such device
>     booting 'sd' failed: No such device
>     boot: No such device
> 
> to this:
> 
>     Booting entry 'sd'
>     Cannot set parameter mci0.probe: No such device
>     running automount command 'mci${global.sd}.probe=1 && mount /dev/disk${global.sd}.0 /mnt/sd' failed
>     could not open /mnt/sd/zImage: No such device
>     ERROR: Booting entry 'sd' failed
>     boot: No such device
> 
> Signed-off-by: Vivien Didelot <vivien.didelot@xxxxxxxxx>
> ---
>  common/boot.c | 20 ++++++--------------
>  1 file changed, 6 insertions(+), 14 deletions(-)

Yeah, looks better.

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux