Message ID | 20230609033430.84471-2-wxjstz@126.com |
---|---|
State | Superseded |
Headers | show |
Series | Improve sbi_console | expand |
On 9 Jun 2023, at 04:34, Xiang W <wxjstz@126.com> wrote: > > Missing continue after print %lu %ld %lx ... What kind of commit message is this? What’s the exact bug? Jess > Signed-off-by: Xiang W <wxjstz@126.com> > --- > lib/sbi/sbi_console.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/sbi/sbi_console.c b/lib/sbi/sbi_console.c > index 168dffd..1f0727c 100644 > --- a/lib/sbi/sbi_console.c > +++ b/lib/sbi/sbi_console.c > @@ -370,6 +370,7 @@ static int print(char **out, u32 *out_len, const char *format, va_list args) > va_arg(args, long), 10, 1, > width, flags, '0'); > } > + continue; > } > if (*format == 'c') { > /* char are converted to int then pushed on the stack */ > -- > 2.39.2 >
在 2023-06-09星期五的 05:16 +0100,Jessica Clarke写道: > On 9 Jun 2023, at 04:34, Xiang W <wxjstz@126.com> wrote: > > > > Missing continue after print %lu %ld %lx ... > > What kind of commit message is this? What’s the exact bug? Thanks! There are no bugs here, just a different style of code than the rest. I will drop this. Xiang > > Jess > > > Signed-off-by: Xiang W <wxjstz@126.com> > > --- > > lib/sbi/sbi_console.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/lib/sbi/sbi_console.c b/lib/sbi/sbi_console.c > > index 168dffd..1f0727c 100644 > > --- a/lib/sbi/sbi_console.c > > +++ b/lib/sbi/sbi_console.c > > @@ -370,6 +370,7 @@ static int print(char **out, u32 *out_len, const char *format, va_list args) > > va_arg(args, long), 10, 1, > > width, flags, '0'); > > } > > + continue; > > } > > if (*format == 'c') { > > /* char are converted to int then pushed on the stack */ > > -- > > 2.39.2 > >
diff --git a/lib/sbi/sbi_console.c b/lib/sbi/sbi_console.c index 168dffd..1f0727c 100644 --- a/lib/sbi/sbi_console.c +++ b/lib/sbi/sbi_console.c @@ -370,6 +370,7 @@ static int print(char **out, u32 *out_len, const char *format, va_list args) va_arg(args, long), 10, 1, width, flags, '0'); } + continue; } if (*format == 'c') { /* char are converted to int then pushed on the stack */
Missing continue after print %lu %ld %lx ... Signed-off-by: Xiang W <wxjstz@126.com> --- lib/sbi/sbi_console.c | 1 + 1 file changed, 1 insertion(+)