Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm Use PRIxVADDR... (change a printf/panic -> panic)
details: https://anonhg.NetBSD.org/src/rev/6d8d317951a8
branches: trunk
changeset: 750074:6d8d317951a8
user: matt <matt%NetBSD.org@localhost>
date: Tue Dec 15 06:15:11 2009 +0000
description:
Use PRIxVADDR... (change a printf/panic -> panic)
diffstat:
sys/uvm/uvm_map.c | 12 +++++++-----
sys/uvm/uvm_unix.c | 6 +++---
2 files changed, 10 insertions(+), 8 deletions(-)
diffs (60 lines):
diff -r 03932a5528a4 -r 6d8d317951a8 sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Tue Dec 15 06:07:14 2009 +0000
+++ b/sys/uvm/uvm_map.c Tue Dec 15 06:15:11 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_map.c,v 1.285 2009/12/14 21:19:47 matt Exp $ */
+/* $NetBSD: uvm_map.c,v 1.286 2009/12/15 06:15:11 matt Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.285 2009/12/14 21:19:47 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.286 2009/12/15 06:15:11 matt Exp $");
#include "opt_ddb.h"
#include "opt_uvmhist.h"
@@ -2605,9 +2605,11 @@
if (tmpent->start < cur)
panic("uvm_map_replace1");
if (tmpent->start >= tmpent->end || tmpent->end > end) {
- printf("tmpent->start=0x%lx, tmpent->end=0x%lx, end=0x%lx\n",
- tmpent->start, tmpent->end, end);
- panic("uvm_map_replace2");
+ panic("uvm_map_replace2: "
+ "tmpent->start=0x%"PRIxVADDR
+ ", tmpent->end=0x%"PRIxVADDR
+ ", end=0x%"PRIxVADDR,
+ tmpent->start, tmpent->end, end);
}
cur = tmpent->end;
if (tmpent->next) {
diff -r 03932a5528a4 -r 6d8d317951a8 sys/uvm/uvm_unix.c
--- a/sys/uvm/uvm_unix.c Tue Dec 15 06:07:14 2009 +0000
+++ b/sys/uvm/uvm_unix.c Tue Dec 15 06:15:11 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_unix.c,v 1.42 2009/11/27 12:25:10 njoly Exp $ */
+/* $NetBSD: uvm_unix.c,v 1.43 2009/12/15 06:15:11 matt Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_unix.c,v 1.42 2009/11/27 12:25:10 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_unix.c,v 1.43 2009/12/15 06:15:11 matt Exp $");
#include "opt_pax.h"
@@ -119,7 +119,7 @@
UVM_FLAG_OVERLAY|UVM_FLAG_COPYONW));
if (error) {
#ifdef DEBUG
- uprintf("sbrk: grow %ld failed, error = %d\n",
+ uprintf("sbrk: grow %#"PRIxVADDR" failed, error = %d\n",
new - old, error);
#endif
mutex_exit(&p->p_auxlock);
Home |
Main Index |
Thread Index |
Old Index