From: Artem Bityutskiy <dedekind@infradead.org>
To: Mike Frysinger <vapier@gentoo.org>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [PATCH] ubiformat.c: fix printf(%d, size_t) warning
Date: Tue, 09 Dec 2008 15:31:29 +0200 [thread overview]
Message-ID: <1228829489.13686.193.camel@sauron> (raw)
In-Reply-To: <1228829283-27226-1-git-send-email-vapier@gentoo.org>
On Tue, 2008-12-09 at 08:28 -0500, Mike Frysinger wrote:
> A size_t should be printed using %zu (unsigned size_t) rather than %d. This
> fixes the following warning on my system:
> gcc -O2 -Werror -Wall -Iinclude -Isrc -I../../include src/ubiformat.c -c -o ubiformat.o
> cc1: warnings being treated as errors
> src/ubiformat.c: In function ‘read_all’:
> src/ubiformat.c:345: error: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’
> src/ubiformat.c:352: error: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’
> make: *** [ubiformat.o] Error 1
Pushed, thanks.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
prev parent reply other threads:[~2008-12-09 13:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-09 13:28 [PATCH] ubiformat.c: fix printf(%d, size_t) warning Mike Frysinger
2008-12-09 13:31 ` Artem Bityutskiy [this message]
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=1228829489.13686.193.camel@sauron \
--to=dedekind@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=vapier@gentoo.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