From patchwork Wed Feb 20 16:41:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [mtd-utils] flash_otp_write: fix format string warning Date: Wed, 20 Feb 2013 06:41:09 -0000 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 222117 Message-Id: <1361378469-18631-1-git-send-email-u.kleine-koenig@pengutronix.de> To: linux-mtd@lists.infradead.org, Artem Bityutskiy Cc: kernel@pengutronix.de This fixes flash_otp_write.c: In function 'main': flash_otp_write.c:61:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'off_t' [-Wformat] Signed-off-by: Uwe Kleine-König --- flash_otp_write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flash_otp_write.c b/flash_otp_write.c index d407ebb..41cf1c5 100644 --- a/flash_otp_write.c +++ b/flash_otp_write.c @@ -58,7 +58,7 @@ int main(int argc,char *argv[]) return errno; } - printf("Writing OTP user data on %s at offset 0x%lx\n", argv[2], offset); + printf("Writing OTP user data on %s at offset 0x%lx\n", argv[2], (unsigned long)offset); if (mtdInfo.type == MTD_NANDFLASH) len = mtdInfo.writesize;