public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH mtd-utils] flash_otp_write: fix format string warning
@ 2013-02-20 16:41 Uwe Kleine-König
  2013-03-06  9:19 ` Artem Bityutskiy
  0 siblings, 1 reply; 4+ messages in thread
From: Uwe Kleine-König @ 2013-02-20 16:41 UTC (permalink / raw)
  To: linux-mtd, Artem Bityutskiy; +Cc: kernel

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 <u.kleine-koenig@pengutronix.de>
---
 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;
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-03-06 11:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-20 16:41 [PATCH mtd-utils] flash_otp_write: fix format string warning Uwe Kleine-König
2013-03-06  9:19 ` Artem Bityutskiy
2013-03-06  9:43   ` [PATCH v2] " Uwe Kleine-König
2013-03-06 11:10     ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox