From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 2/3] fat.c: fix printf() length modifier
Date: Sat, 17 Dec 2011 23:56:52 +0100 [thread overview]
Message-ID: <20111217225652.0AD60138EEA1@gemini.denx.de> (raw)
In-Reply-To: <1323939415-21743-3-git-send-email-andreas.devel@googlemail.com>
Dear =?UTF-8?q?Andreas=20Bie=C3=9Fmann?=,
In message <1323939415-21743-3-git-send-email-andreas.devel@googlemail.com> you wrote:
> From: Andreas Bie?mann <biessmann@corscience.de>
>
> The DIRENTSPERBLOCK utilizes sizeof() which will return a size_t which has no
> fixed size. Therefor use correct length modifer for printf() statement to
> prevent compiler warnings.
>
> This patch fixes following warning:
>
> ---8<---
> fat.c: In function 'do_fat_read':
> fat.c:879: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int'
> --->8---
>
> Signed-off-by: Andreas Bie?mann <biessmann@corscience.de>
> cc: Mike Frysinger <vapier@gentoo.org>
> cc: Thomas Chou <thomas@wytron.com.tw>
> cc: rjones at nexus-tech.net
> cc: kharris at nexus-tech.net
> ---
> changes since v1: split off into single patches
>
> total: 0 errors, 0 warnings, 8 lines checked
>
> NOTE: Ignored message types: COMPLEX_MACRO CONSIDER_KSTRTO MINMAX MULTISTATEMENT_MACRO_USE_DO_WHILE
>
> 0002-fat.c-fix-printf-length-modifier.patch has no obvious style problems and is ready for submission.
>
> fs/fat/fat.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Applied to "next" branch, thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Send lawyers, guns and money..." - Lyrics from a Warren Zevon song
next prev parent reply other threads:[~2011-12-17 22:56 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-14 6:36 [U-Boot] cmd_sf warning on size_t Thomas Chou
2011-12-14 9:34 ` Andreas Bießmann
2011-12-14 10:04 ` [U-Boot] [PATCH/RFC] fix several printf() modifiers Andreas Bießmann
2011-12-15 2:22 ` Thomas Chou
2011-12-15 2:39 ` Graeme Russ
2011-12-15 5:36 ` Mike Frysinger
2011-12-15 5:35 ` Mike Frysinger
2011-12-15 8:30 ` Andreas Bießmann
2011-12-15 19:22 ` Mike Frysinger
2011-12-15 8:56 ` [U-Boot] [PATCH v2 0/3] fix several printf() length modifers Andreas Bießmann
2011-12-15 8:56 ` [U-Boot] [PATCH v2 1/3] cmd_sf.c: fix printf() length modifier Andreas Bießmann
2011-12-15 12:20 ` Mike Frysinger
2011-12-17 22:56 ` Wolfgang Denk
2011-12-15 8:56 ` [U-Boot] [PATCH v2 2/3] fat.c: " Andreas Bießmann
2011-12-15 12:21 ` Mike Frysinger
2011-12-17 22:56 ` Wolfgang Denk [this message]
2011-12-15 8:56 ` [U-Boot] [PATCH v2 3/3] avr32:mmu.c: " Andreas Bießmann
2011-12-15 12:21 ` Mike Frysinger
2011-12-17 22:57 ` Wolfgang Denk
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=20111217225652.0AD60138EEA1@gemini.denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/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