Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm paddr_t can't be printed by "%lx" in some platforms.



details:   https://anonhg.NetBSD.org/src/rev/b57e839dc397
branches:  trunk
changeset: 973802:b57e839dc397
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Jul 13 10:46:10 2020 +0000

description:
paddr_t can't be printed by "%lx" in some platforms.

fix the eg, i386 build.

diffstat:

 sys/uvm/uvm_physseg.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 59ddd249662a -r b57e839dc397 sys/uvm/uvm_physseg.c
--- a/sys/uvm/uvm_physseg.c     Mon Jul 13 10:35:17 2020 +0000
+++ b/sys/uvm/uvm_physseg.c     Mon Jul 13 10:46:10 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_physseg.c,v 1.15 2020/07/13 05:52:50 mrg Exp $ */
+/* $NetBSD: uvm_physseg.c,v 1.16 2020/07/13 10:46:10 mrg Exp $ */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -1209,7 +1209,8 @@
        if (free_list >= VM_NFREELIST || free_list < VM_FREELIST_DEFAULT)
                panic("uvm_page_physload: bad free list %d", free_list);
        if (start >= end)
-               panic("uvm_page_physload: start[%lx] >= en[%lx]d", start, end);
+               panic("uvm_page_physload: start[%llx] >= en[%llx]d",
+                   (unsigned long long)start, (unsigned long long)end);
 
        if (uvm_physseg_plug(start, end - start, &upm) == false) {
                panic("uvm_physseg_plug() failed at boot.");



Home | Main Index | Thread Index | Old Index