Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Fix typo. Use PRIxPADDR rather than casting.



details:   https://anonhg.NetBSD.org/src/rev/50c2917d832e
branches:  trunk
changeset: 936006:50c2917d832e
user:      rin <rin%NetBSD.org@localhost>
date:      Wed Jul 15 15:08:26 2020 +0000

description:
Fix typo. Use PRIxPADDR rather than casting.

diffstat:

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

diffs (20 lines):

diff -r 0cb99c934267 -r 50c2917d832e sys/uvm/uvm_physseg.c
--- a/sys/uvm/uvm_physseg.c     Wed Jul 15 14:33:58 2020 +0000
+++ b/sys/uvm/uvm_physseg.c     Wed Jul 15 15:08:26 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_physseg.c,v 1.16 2020/07/13 10:46:10 mrg Exp $ */
+/* $NetBSD: uvm_physseg.c,v 1.17 2020/07/15 15:08:26 rin Exp $ */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -1209,8 +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[%llx] >= en[%llx]d",
-                   (unsigned long long)start, (unsigned long long)end);
+               panic("uvm_page_physload: start[%" PRIxPADDR "] >= end[%"
+                   PRIxPADDR "]", start, end);
 
        if (uvm_physseg_plug(start, end - start, &upm) == false) {
                panic("uvm_physseg_plug() failed at boot.");



Home | Main Index | Thread Index | Old Index