diff options
author | peter <peter@FreeBSD.org> | 2003-10-26 04:47:31 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-10-26 04:47:31 +0000 |
commit | 29ac7373364792c28d198c809c5931999d5848e0 (patch) | |
tree | d589de44399b0180854cfd603bfec02009b6080a | |
parent | 96896379b871c1adfc2f370d6673d5bcd27dc5a8 (diff) | |
download | FreeBSD-src-29ac7373364792c28d198c809c5931999d5848e0.zip FreeBSD-src-29ac7373364792c28d198c809c5931999d5848e0.tar.gz |
Fix some 64 bit warnings. You can't fit a pointer in an int.
-rw-r--r-- | sbin/vinum/list.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/vinum/list.c b/sbin/vinum/list.c index 2547743..ee5602a 100644 --- a/sbin/vinum/list.c +++ b/sbin/vinum/list.c @@ -854,11 +854,11 @@ vinum_info(int argc, char *argv[], char *argv0[]) return; } printf("Total of %d blocks malloced, total memory: %d\n" - "Maximum allocs: %8d, malloc table at 0x%08x\n", + "Maximum allocs: %8d, malloc table at 0x%08lx\n", meminfo.mallocs, meminfo.total_malloced, meminfo.highwater, - (int) meminfo.malloced); + (unsigned long) meminfo.malloced); printf("%d requests active, maximum %d active\n", vinum_conf.active, @@ -872,11 +872,11 @@ vinum_info(int argc, char *argv[], char *argv0[]) } if (!(i & 63)) printf("Block\tSequence\t size\t address\t line\t\tfile\n\n"); - printf("%6d\t%6d\t\t%6d\t0x%08x\t%6d\t\t%s\n", + printf("%6d\t%6d\t\t%6d\t0x%08lx\t%6d\t\t%s\n", i, malloced.seq, malloced.size, - (int) malloced.address, + (unsigned long) malloced.address, malloced.line, (char *) &malloced.file); } |