All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Brian Norris" <computersforpeace@gmail.com>
To: "Artem Bityutskiy" <dedekind1@gmail.com>
Cc: Brian Norris <computersforpeace@gmail.com>,
	linux-mtd@lists.infradead.org,
	Mike Frysinger <vapier.adi@gmail.com>
Subject: [PATCH 01/10] mtd-tests: checkfs: fix size_t related warning
Date: Mon, 27 Jun 2011 11:27:18 -0700	[thread overview]
Message-ID: <1309199247-19248-2-git-send-email-computersforpeace@gmail.com> (raw)
In-Reply-To: <1309199247-19248-1-git-send-email-computersforpeace@gmail.com>

Depending on your compiler, size_t may or may not be long unsigned int.
Use printf's %zu format to clarify.

Warning message:

   checkfs.c:524:28: warning: format '%lu' expects type
   'long unsigned int', but argument 2 has type 'unsigned int'

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
---
 tests/checkfs/checkfs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/checkfs/checkfs.c b/tests/checkfs/checkfs.c
index 8e74da8..0e67626 100644
--- a/tests/checkfs/checkfs.c
+++ b/tests/checkfs/checkfs.c
@@ -520,7 +520,7 @@ void processCmdLine(int argc, char **argv)
                 FileSizeMax = (float)atoi(argv[++cnt]);
                 if(FileSizeMax > (MAX_INTS_ALLOW*sizeof(int)))
                 {
-                    printf("Max file size allowed is %lu.\n",
+                    printf("Max file size allowed is %zu.\n",
                            MAX_INTS_ALLOW*sizeof(int));
                     exit(0);
                 }
-- 
1.7.0.4

  reply	other threads:[~2011-06-27 18:28 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-27 18:27 [PATCH 00/10] more mtd-utils cleanup Brian Norris
2011-06-27 18:27 ` Brian Norris [this message]
2011-06-27 18:27 ` [PATCH 02/10] mtd-tests: io_paral: build error, "variable length strings" Brian Norris
2011-06-29 13:22   ` Josh Boyer
2011-06-29 15:45     ` Brian Norris
2011-06-27 18:27 ` [PATCH 03/10] mtd-utils: remove whitespace at end of lines Brian Norris
2011-06-27 18:27 ` [PATCH 04/10] mtd-utils: update .gitignore files Brian Norris
2011-06-27 18:27 ` [PATCH 05/10] mkfs.ubifs: use common.h Brian Norris
2011-06-27 18:27 ` [PATCH 06/10] mtd-utils: add common version printing function Brian Norris
2011-06-27 19:51   ` Mike Frysinger
2011-06-27 20:15     ` Brian Norris
2011-06-27 20:20       ` Mike Frysinger
2011-06-27 18:27 ` [PATCH 07/10] mtd-utils: switch more utils to unified versioning Brian Norris
2011-06-27 18:27 ` [PATCH 08/10] mtd-utils: kill flash_info Brian Norris
2011-06-27 18:27 ` [PATCH 09/10] mtdinfo: kill -m option Brian Norris
2011-06-29  6:02   ` Artem Bityutskiy
2011-06-29 16:09     ` [PATCH v2] mtdinfo: remove -m leftovers Brian Norris
2011-06-30  7:03       ` Artem Bityutskiy
2011-06-27 18:27 ` [PATCH 10/10] nanddump: remove unused variable Brian Norris
2011-06-27 19:52 ` [PATCH 00/10] more mtd-utils cleanup Mike Frysinger
2011-06-27 20:30   ` Brian Norris

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=1309199247-19248-2-git-send-email-computersforpeace@gmail.com \
    --to=computersforpeace@gmail.com \
    --cc=dedekind1@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=vapier.adi@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.