vsprintf: fix data type of variable in string_nocheck()
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): CGME20190610074708epcas2p3dcbdc49d114c544c1de721666d574b43@epcas2p3.samsung.com
PATCH 1/1 vsprintf: fix data type of variable in string_nocheck()
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 <[email protected]>
--- lib/vsprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/vsprintf.c +1 -1
@@ -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++;
Signature · 1 line
2.21.0
Quoted 4 lines · 남영민
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 <[email protected]>
Looks OK to me.
FWIW
Reviewed-by Sergey Senozhatsky <[email protected]>
-ss
Petr Mladek
maintainerQuoted 10 lines · Sergey Senozhatsky
Quoted 4 lines · 남영민
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 <[email protected]>Looks OK to me.
FWIW
Reviewed-by Sergey Senozhatsky <[email protected]>
The patch has been committed into printk.git, branch for-5.3.
Best Regards,
Petr