Re: [PATCH] blspec: support higher verbosity levels for boot

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

 



On Wed, Mar 08, 2023 at 02:04:16PM +0100, Ahmad Fatoum wrote:
> bootm_data::verbose is an integer and may take values higher than one
> for higher levels of verbosity. Yet, boots with blspec always had at
> most a verbosity of one, because verbose was treated as boolean. Fix this.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
> ---
>  common/blspec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

> 
> diff --git a/common/blspec.c b/common/blspec.c
> index f6e590b2efd8..97400b9a2248 100644
> --- a/common/blspec.c
> +++ b/common/blspec.c
> @@ -88,7 +88,7 @@ static int blspec_boot(struct bootentry *be, int verbose, int dryrun)
>  
>  	bootm_data_init_defaults(&data);
>  
> -	data.verbose = verbose || data.verbose;
> +	data.verbose = max(verbose, data.verbose);
>  
>  	devicetree = blspec_entry_var_get(entry, "devicetree");
>  	initrd = blspec_entry_var_get(entry, "initrd");
> -- 
> 2.30.2
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




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

  Powered by Linux