[SeaBIOS] [PATCH] Enable shell-like * globing in bootorder entries

Paul Menzel pmenzel at molgen.mpg.de
Mon May 14 08:42:28 CEST 2018


Dear Ian,


Am 14.05.2018 um 05:12 schrieb Ian Kelling:
> Signed-off-by: Ian Kelling <ian at iankelling.org>
> ---
>   src/boot.c | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/src/boot.c b/src/boot.c
> index ff705fd..ca64595 100644
> --- a/src/boot.c
> +++ b/src/boot.c
> @@ -91,14 +91,14 @@ glob_prefix(const char *glob, const char *str)
>       }
>   }
>   
> -// Search the bootorder list for the given glob pattern.
> +// Search the bootorder glob list for the given device description
>   static int
> -find_prio(const char *glob)
> +find_prio(const char *desc)
>   {
> -    dprintf(1, "Searching bootorder for: %s\n", glob);
> +    dprintf(1, "Searching bootorder for: %s\n", desc);
>       int i;
>       for (i = 0; i < BootorderCount; i++)
> -        if (glob_prefix(glob, Bootorder[i]))
> +        if (glob_prefix(Bootorder[i], desc))
>               return i+1;
>       return -1;
>   }

Very nice, but please also update the documention.


Kind regards,

Paul



More information about the SeaBIOS mailing list