[BusyBox-cvs] busybox/libbb dump.c,1.7,1.8
Glenn McGrath
bug1 at busybox.net
Fri Mar 5 05:47:21 UTC 2004
Update of /var/cvs/busybox/libbb
In directory nail:/tmp/cvs-serv17654/libbb
Modified Files:
dump.c
Log Message:
Patch from Vernon Sauder.
The off_t type is not a consistent size; it depends on the kernel options
(something about large file support). Therefore, the format string for
printing an address is not always the same.
Index: dump.c
===================================================================
RCS file: /var/cvs/busybox/libbb/dump.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- a/dump.c 30 Jan 2004 22:52:27 -0000 1.7
+++ b/dump.c 5 Mar 2004 05:47:19 -0000 1.8
@@ -650,7 +650,7 @@
for (pr = endfu->nextpr; pr; pr = pr->nextpr) {
switch (pr->flags) {
case F_ADDRESS:
- (void) printf(pr->fmt, eaddress);
+ (void) printf(pr->fmt, (unsigned int) eaddress);
break;
case F_TEXT:
(void) printf(pr->fmt);
More information about the busybox-cvs
mailing list