Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm Use PRIxPADDR to print a physical address (instead o...
details: https://anonhg.NetBSD.org/src/rev/84c5ee8ec653
branches: trunk
changeset: 1005975:84c5ee8ec653
user: martin <martin%NetBSD.org@localhost>
date: Sat Dec 28 08:49:41 2019 +0000
description:
Use PRIxPADDR to print a physical address (instead of casting to void*
and printing a pointer - which does not work well if sizeof(paddr_t) !=
sizeof(void*)).
diffstat:
sys/uvm/uvm_page.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 23f9601cdb9f -r 84c5ee8ec653 sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c Sat Dec 28 08:33:35 2019 +0000
+++ b/sys/uvm/uvm_page.c Sat Dec 28 08:49:41 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_page.c,v 1.214 2019/12/27 13:19:24 ad Exp $ */
+/* $NetBSD: uvm_page.c,v 1.215 2019/12/28 08:49:41 martin Exp $ */
/*-
* Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -95,7 +95,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.214 2019/12/27 13:19:24 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.215 2019/12/28 08:49:41 martin Exp $");
#include "opt_ddb.h"
#include "opt_uvm.h"
@@ -725,8 +725,8 @@
}
if (!warned) {
- printf("uvm_page_numa_lookup: failed, first pg=%p pa=%p\n",
- pg, (void *)VM_PAGE_TO_PHYS(pg));
+ printf("uvm_page_numa_lookup: failed, first pg=%p pa=%#"
+ PRIxPADDR "\n", pg, VM_PAGE_TO_PHYS(pg));
warned = true;
}
Home |
Main Index |
Thread Index |
Old Index