summaryrefslogtreecommitdiffstats
path: root/common/console_common.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2015-09-04 20:27:11 +0900
committerSascha Hauer <s.hauer@pengutronix.de>2015-09-07 07:24:32 +0200
commit2548c100bb8e0e70ea1f2e0ca84878832de6c4a5 (patch)
tree00ff6fd33678aa6af894b3fc901ad7c25c8744e1 /common/console_common.c
parenteb1f1a1a2483aa5230c78a0e921860513d97ea10 (diff)
downloadbarebox-2548c100bb8e0e70ea1f2e0ca84878832de6c4a5.tar.gz
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>
Diffstat (limited to 'common/console_common.c')
-rw-r--r--common/console_common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/console_common.c b/common/console_common.c
index fcf89e8..a9bbce9 100644
--- a/common/console_common.c
+++ b/common/console_common.c
@@ -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];
/*