From: Masahiro Yamada <yamada.masahiro@socionext.com>
To: barebox@lists.infradead.org
Subject: [PATCH] console: use int rather than uint in printf() and friends
Date: Fri, 4 Sep 2015 20:27:11 +0900 [thread overview]
Message-ID: <1441366031-856-1-git-send-email-yamada.masahiro@socionext.com> (raw)
These functions and vsprintf() return int type.
No reason to use uint type.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---
common/console_common.c | 6 +++---
1 file 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];
/*
--
1.9.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2015-09-04 11:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-04 11:27 Masahiro Yamada [this message]
2015-09-07 5:24 ` Sascha Hauer
2015-09-24 9:39 ` Masahiro Yamada
2015-09-24 17:33 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1441366031-856-1-git-send-email-yamada.masahiro@socionext.com \
--to=yamada.masahiro@socionext.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox