svn commit: trunk/busybox/util-linux

landley at busybox.net landley at busybox.net
Sun Aug 6 20:41:12 UTC 2006


Author: landley
Date: 2006-08-06 13:41:11 -0700 (Sun, 06 Aug 2006)
New Revision: 15787

Log:
Make a warning go away on 64-bit systems.


Modified:
   trunk/busybox/util-linux/readprofile.c


Changeset:
Modified: trunk/busybox/util-linux/readprofile.c
===================================================================
--- trunk/busybox/util-linux/readprofile.c	2006-08-06 02:13:36 UTC (rev 15786)
+++ trunk/busybox/util-linux/readprofile.c	2006-08-06 20:41:11 UTC (rev 15787)
@@ -47,7 +47,7 @@
 	int proFd;
 	const char *mapFile, *proFile, *mult=0;
 	unsigned long len=0, indx=1;
-	unsigned long long add0=0;
+	uint64_t add0=0;
 	unsigned int step;
 	unsigned int *buf, total, fn_len;
 	unsigned long long fn_add, next_add;          /* current and next address */
@@ -223,7 +223,7 @@
 					printf ("%s:\n", fn_name);
 					header_printed = 1;
 				}
-				printf ("\t%llx\t%u\n", (indx - 1)*step + add0, buf[indx]);
+				printf ("\t%"PRIx64"\t%u\n", (indx - 1)*step + add0, buf[indx]);
 			}
 			this += buf[indx++];
 		}




More information about the busybox-cvs mailing list