Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 We don't have printk. Use printf_nolog, and...
details: https://anonhg.NetBSD.org/src/rev/5b8d0cfef506
branches: trunk
changeset: 770261:5b8d0cfef506
user: christos <christos%NetBSD.org@localhost>
date: Mon Oct 10 01:28:26 2011 +0000
description:
We don't have printk. Use printf_nolog, and pass the function name.
diffstat:
sys/arch/x86/x86/pmap.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (43 lines):
diff -r f52af04607d4 -r 5b8d0cfef506 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c Sun Oct 09 22:14:17 2011 +0000
+++ b/sys/arch/x86/x86/pmap.c Mon Oct 10 01:28:26 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.132 2011/09/27 01:02:37 jym Exp $ */
+/* $NetBSD: pmap.c,v 1.133 2011/10/10 01:28:26 christos Exp $ */
/*-
* Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
@@ -171,7 +171,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.132 2011/09/27 01:02:37 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.133 2011/10/10 01:28:26 christos Exp $");
#include "opt_user_ldt.h"
#include "opt_lockdebug.h"
@@ -983,8 +983,8 @@
#ifdef DOM0OPS
if (pa < pmap_pa_start || pa >= pmap_pa_end) {
#ifdef DEBUG
- printk("pmap_kenter_pa: pa 0x%" PRIx64 " for va 0x%" PRIx64
- " outside range\n", (int64_t)pa, (int64_t)va);
+ printf_nolog("%s: pa 0x%" PRIx64 " for va 0x%" PRIx64
+ " outside range\n", __func__, (int64_t)pa, (int64_t)va);
#endif /* DEBUG */
npte = pa;
} else
@@ -996,11 +996,11 @@
#if defined(DIAGNOSTIC)
/* XXX For now... */
if (opte & PG_PS)
- panic("pmap_kenter_pa: PG_PS");
+ panic("%s: PG_PS", __func__);
#endif
if ((opte & (PG_V | PG_U)) == (PG_V | PG_U)) {
#if defined(DIAGNOSTIC)
- printf("pmap_kenter_pa: mapping already present\n");
+ printf_nolog("%s: mapping already present\n", __func__);
#endif
/* This should not happen. */
kpreempt_disable();
Home |
Main Index |
Thread Index |
Old Index