[kaffe] CVS kaffe (robilad): kaffe/kaffevm/code.c (addLineNumbers): Fixed formatting string

Kaffe CVS cvs-commits at kaffe.org
Sat Sep 22 15:57:01 PDT 2007


PatchSet 7559 
Date: 2007/09/22 22:55:22
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
2007-09-23  Dalibor Topic  <robilad at kaffe.org>

* kaffe/kaffevm/code.c (addLineNumbers): Fixed formatting string
warnings on x86_64-linux.

Members: 
	ChangeLog:1.5057->1.5058 
	kaffe/kaffevm/code.c:1.23->1.24 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.5057 kaffe/ChangeLog:1.5058
--- kaffe/ChangeLog:1.5057	Sat Sep 22 20:13:00 2007
+++ kaffe/ChangeLog	Sat Sep 22 22:55:22 2007
@@ -1,3 +1,8 @@
+2007-09-23  Dalibor Topic  <robilad at kaffe.org>
+
+	* kaffe/kaffevm/code.c (addLineNumbers): Fixed formatting string
+	warnings on x86_64-linux.
+
 2007-09-22  Dalibor Topic  <robilad at kaffe.org>
 
 	* kaffe/kaffevm/exception.c (discardErrorInfo): 
Index: kaffe/kaffe/kaffevm/code.c
diff -u kaffe/kaffe/kaffevm/code.c:1.23 kaffe/kaffe/kaffevm/code.c:1.24
--- kaffe/kaffe/kaffevm/code.c:1.23	Sun Jul  1 19:09:13 2007
+++ kaffe/kaffe/kaffevm/code.c	Sat Sep 22 22:55:24 2007
@@ -144,9 +144,9 @@
 	lines = gc_malloc(sizeof(lineNumbers)+sizeof(lineNumberEntry) * nr, KGC_ALLOC_LINENRTABLE);
 	if (!lines) {
 	  DBG(READCLASS,
-	      dprintf("%s (%s): failed to allocate %d bytes for %d line number table entries.\n",
+	      dprintf("%s (%s): failed to allocate %lu bytes for %d line number table entries.\n",
 		      CLASS_CNAME(m->class), m->name->data,
-		      sizeof(lineNumbers)+sizeof(lineNumberEntry) * nr,
+		      (unsigned long) sizeof(lineNumbers)+sizeof(lineNumberEntry) * nr,
 		      nr);
 	      );
 
@@ -162,9 +162,9 @@
 		lines->entry[i].line_nr = data;
 		if (lines->entry[i].start_pc > m->c.bcode.codelen) {
 		  DBG(READCLASS,
-		      dprintf("%s (%s): start pc %d of line number entry %d > method length %d.\n",
+		      dprintf("%s (%s): start pc %lu of line number entry %d > method length %d.\n",
 			      CLASS_CNAME(m->class), m->name->data,
-			      lines->entry[i].start_pc, i, m->c.bcode.codelen);
+			      (unsigned long) lines->entry[i].start_pc, i, m->c.bcode.codelen);
 		      );
 			postExceptionMessage(info,
 					     JAVA_LANG(ClassFormatError),




More information about the kaffe mailing list