* [PATCH] vsprintf: fix data type of variable in string_nocheck()
[not found] <CGME20190610074708epcas2p3dcbdc49d114c544c1de721666d574b43@epcas2p3.samsung.com>
@ 2019-06-10 7:47 ` 남영민
2019-06-10 8:16 ` Sergey Senozhatsky
0 siblings, 1 reply; 3+ messages in thread
From: 남영민 @ 2019-06-10 7:47 UTC (permalink / raw)
To: pmladek, andriy.shevchenko, sergey.senozhatsky, geert+renesas,
rostedt, me, linux-kernel
This patch fixes data type of precision with int.
The precision is declared as signed int in struct printf_spec.
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
---
lib/vsprintf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 63937044c57d..cd0cd9279b12 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -599,7 +599,7 @@ static char *string_nocheck(char *buf, char *end, const char *s,
struct printf_spec spec)
{
int len = 0;
- size_t lim = spec.precision;
+ int lim = spec.precision;
while (lim--) {
char c = *s++;
--
2.21.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] vsprintf: fix data type of variable in string_nocheck()
2019-06-10 7:47 ` [PATCH] vsprintf: fix data type of variable in string_nocheck() 남영민
@ 2019-06-10 8:16 ` Sergey Senozhatsky
2019-06-12 7:56 ` Petr Mladek
0 siblings, 1 reply; 3+ messages in thread
From: Sergey Senozhatsky @ 2019-06-10 8:16 UTC (permalink / raw)
To: 남영민
Cc: pmladek, andriy.shevchenko, sergey.senozhatsky, geert+renesas,
rostedt, me, linux-kernel
On (06/10/19 16:47), 남영민 wrote:
> This patch fixes data type of precision with int.
> The precision is declared as signed int in struct printf_spec.
>
> Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
Looks OK to me.
FWIW
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
-ss
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] vsprintf: fix data type of variable in string_nocheck()
2019-06-10 8:16 ` Sergey Senozhatsky
@ 2019-06-12 7:56 ` Petr Mladek
0 siblings, 0 replies; 3+ messages in thread
From: Petr Mladek @ 2019-06-12 7:56 UTC (permalink / raw)
To: Sergey Senozhatsky
Cc: 남영민,
andriy.shevchenko, sergey.senozhatsky, geert+renesas, rostedt,
me, linux-kernel
On Mon 2019-06-10 17:16:54, Sergey Senozhatsky wrote:
> On (06/10/19 16:47), 남영민 wrote:
> > This patch fixes data type of precision with int.
> > The precision is declared as signed int in struct printf_spec.
> >
> > Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
>
> Looks OK to me.
>
> FWIW
> Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
The patch has been committed into printk.git, branch for-5.3.
Best Regards,
Petr
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-06-12 7:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20190610074708epcas2p3dcbdc49d114c544c1de721666d574b43@epcas2p3.samsung.com>
2019-06-10 7:47 ` [PATCH] vsprintf: fix data type of variable in string_nocheck() 남영민
2019-06-10 8:16 ` Sergey Senozhatsky
2019-06-12 7:56 ` Petr Mladek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome