Module Name:    src
Committed By:   mrg
Date:           Mon Jul 13 10:46:10 UTC 2020

Modified Files:
        src/sys/uvm: uvm_physseg.c

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

fix the eg, i386 build.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/uvm/uvm_physseg.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_physseg.c
diff -u src/sys/uvm/uvm_physseg.c:1.15 src/sys/uvm/uvm_physseg.c:1.16
--- src/sys/uvm/uvm_physseg.c:1.15	Mon Jul 13 05:52:50 2020
+++ src/sys/uvm/uvm_physseg.c	Mon Jul 13 10:46:10 2020
@@ -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 @@ uvm_page_physload(paddr_t start, paddr_t
 	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.");

Reply via email to