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

Xiang W wxjstz at 126.com
Tue Jul 4 02:55:08 PDT 2023


在 2023-07-04星期二的 09:54 +0530,Anup Patel写道:
> On Mon, Jun 12, 2023 at 1:41 PM Xiang W <wxjstz at 126.com> wrote:
> 
> No patch description ?
Will be done in next patch.

Regards,
Xiang W
> 
> > 
> > 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