Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm fix printf format mismatch, when paddr_t becomes (lo...
details: https://anonhg.NetBSD.org/src/rev/5f2f69d4cfe1
branches: trunk
changeset: 487538:5f2f69d4cfe1
user: soda <soda%NetBSD.org@localhost>
date: Fri Jun 09 04:43:19 2000 +0000
description:
fix printf format mismatch, when paddr_t becomes (long long) on arc port.
diffstat:
sys/uvm/uvm_page.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diffs (35 lines):
diff -r e57dae5d3e27 -r 5f2f69d4cfe1 sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c Fri Jun 09 04:42:46 2000 +0000
+++ b/sys/uvm/uvm_page.c Fri Jun 09 04:43:19 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_page.c,v 1.36 2000/05/29 19:25:56 thorpej Exp $ */
+/* $NetBSD: uvm_page.c,v 1.37 2000/06/09 04:43:19 soda Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -621,8 +621,8 @@
if (vm_nphysseg == VM_PHYSSEG_MAX) {
printf("vm_page_physload: unable to load physical memory "
"segment\n");
- printf("\t%d segments allocated, ignoring 0x%lx -> 0x%lx\n",
- VM_PHYSSEG_MAX, start, end);
+ printf("\t%d segments allocated, ignoring 0x%llx -> 0x%llx\n",
+ VM_PHYSSEG_MAX, (long long)start, (long long)end);
return;
}
@@ -844,9 +844,11 @@
printf("rehash: physical memory config [segs=%d of %d]:\n",
vm_nphysseg, VM_PHYSSEG_MAX);
for (lcv = 0 ; lcv < vm_nphysseg ; lcv++)
- printf("0x%lx->0x%lx [0x%lx->0x%lx]\n", vm_physmem[lcv].start,
- vm_physmem[lcv].end, vm_physmem[lcv].avail_start,
- vm_physmem[lcv].avail_end);
+ printf("0x%llx->0x%llx [0x%llx->0x%llx]\n",
+ (long long)vm_physmem[lcv].start,
+ (long long)vm_physmem[lcv].end,
+ (long long)vm_physmem[lcv].avail_start,
+ (long long)vm_physmem[lcv].avail_end);
printf("STRATEGY = ");
switch (VM_PHYSSEG_STRAT) {
case VM_PSTRAT_RANDOM: printf("RANDOM\n"); break;
Home |
Main Index |
Thread Index |
Old Index