linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix compilation warning on 64 bits platforms v2
@ 2007-05-22 18:07 Damien Lespiau
  0 siblings, 0 replies; only message in thread
From: Damien Lespiau @ 2007-05-22 18:07 UTC (permalink / raw)
  To: linux-sparse; +Cc: Damien Lespiau

Fix: format '%d' expects type 'int', but argument 2 has type 'long int'

Signed-off-by: Damien Lespiau <damien.lespiau@gmail.com>
---
 linearize.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/linearize.c b/linearize.c
index d428d92..c38dd7d 100644
--- a/linearize.c
+++ b/linearize.c
@@ -461,7 +461,7 @@ const char *show_instruction(struct instruction *insn)
 	}
 
 	if (buf >= buffer + sizeof(buffer))
-		die("instruction buffer overflowed %d\n", buf - buffer);
+		die("instruction buffer overflowed %td\n", buf - buffer);
 	do { --buf; } while (*buf == ' ');
 	*++buf = 0;
 	return buffer;
-- 
1.5.2.rc3.87.g404fd

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-22 18:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-22 18:07 [PATCH] Fix compilation warning on 64 bits platforms v2 Damien Lespiau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).