This patch fixes data type of precision with int.
The precision is declared as signed int in struct printf_spec.
Change-Id: Iaa6e2d074ed9d4ca191a8366489a394d79b62ac1
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
Signed-off-by: Kim Gunho <gunho.kim@samsung.com>
char *string(char *buf, char *end, const char *s, struct printf_spec spec)
{
int len = 0;
- size_t lim = spec.precision;
+ int lim = spec.precision;
if ((unsigned long)s < PAGE_SIZE)
s = "(null)";