[PATCH v6 04/12] lib: sbi: Add ' ' '\'' flags for print

Anup Patel anup at brainfault.org
Mon Jul 3 21:24:16 PDT 2023


On Mon, Jun 12, 2023 at 1:41 PM Xiang W <wxjstz at 126.com> wrote:

No patch description ?

>
> Signed-off-by: Xiang W <wxjstz at 126.com>
> ---
>  lib/sbi/sbi_console.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/lib/sbi/sbi_console.c b/lib/sbi/sbi_console.c
> index 75fd5ac..6780ff2 100644
> --- a/lib/sbi/sbi_console.c
> +++ b/lib/sbi/sbi_console.c
> @@ -288,6 +288,10 @@ static int print(char **out, u32 *out_len, const char *format, va_list args)
>                                 case '0':
>                                         flags |= PAD_ZERO;
>                                         break;
> +                               case ' ':
> +                               case '\'':
> +                                       /* Ignored flags, do nothing */
> +                                       break;
>                                 default:
>                                         flags_done = true;
>                                         break;
> --
> 2.39.2
>

Otherwise, it looks good to me.

Reviewed-by: Anup Patel <anup at brainfault.org>

Regards,
Anup



More information about the opensbi mailing list