9
0
Fork 0

console: use int rather than uint in printf() and friends

These functions and vsprintf() return int type.
No reason to use uint type.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Masahiro Yamada 2015-09-04 20:27:11 +09:00 committed by Sascha Hauer
parent eb1f1a1a24
commit 2548c100bb
1 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ nolog:
int pr_print(int level, const char *fmt, ...)
{
va_list args;
uint i;
int i;
char printbuffer[CFG_PBSIZE];
if (!IS_ENABLED(CONFIG_LOGBUF) && level > barebox_loglevel)
@ -191,7 +191,7 @@ void log_print(unsigned flags)
int printf(const char *fmt, ...)
{
va_list args;
uint i;
int i;
char printbuffer[CFG_PBSIZE];
va_start(args, fmt);
@ -212,7 +212,7 @@ EXPORT_SYMBOL(printf);
int vprintf(const char *fmt, va_list args)
{
uint i;
int i;
char printbuffer[CFG_PBSIZE];
/*