Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys deduplicate uvm_object_printit() implementation
details: https://anonhg.NetBSD.org/src/rev/a2d3ebef4cfa
branches: trunk
changeset: 327575:a2d3ebef4cfa
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Mar 11 20:22:47 2014 +0000
description:
deduplicate uvm_object_printit() implementation
diffstat:
sys/rump/librump/rumpkern/vm.c | 14 ++------------
sys/uvm/uvm_object.c | 6 +++---
2 files changed, 5 insertions(+), 15 deletions(-)
diffs (62 lines):
diff -r 68cb56743deb -r a2d3ebef4cfa sys/rump/librump/rumpkern/vm.c
--- a/sys/rump/librump/rumpkern/vm.c Tue Mar 11 17:48:31 2014 +0000
+++ b/sys/rump/librump/rumpkern/vm.c Tue Mar 11 20:22:47 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm.c,v 1.150 2014/03/03 16:50:28 pooka Exp $ */
+/* $NetBSD: vm.c,v 1.151 2014/03/11 20:22:47 pooka Exp $ */
/*
* Copyright (c) 2007-2011 Antti Kantee. All Rights Reserved.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.150 2014/03/03 16:50:28 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.151 2014/03/11 20:22:47 pooka Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -659,16 +659,6 @@
}
-#ifdef DEBUGPRINT
-void
-uvm_object_printit(struct uvm_object *uobj, bool full,
- void (*pr)(const char *, ...))
-{
-
- pr("VM OBJECT at %p, refs %d", uobj, uobj->uo_refs);
-}
-#endif
-
vaddr_t
uvm_default_mapaddr(struct proc *p, vaddr_t base, vsize_t sz)
{
diff -r 68cb56743deb -r a2d3ebef4cfa sys/uvm/uvm_object.c
--- a/sys/uvm/uvm_object.c Tue Mar 11 17:48:31 2014 +0000
+++ b/sys/uvm/uvm_object.c Tue Mar 11 20:22:47 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_object.c,v 1.11 2011/08/27 09:11:53 christos Exp $ */
+/* $NetBSD: uvm_object.c,v 1.12 2014/03/11 20:22:47 pooka Exp $ */
/*
* Copyright (c) 2006, 2010 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_object.c,v 1.11 2011/08/27 09:11:53 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_object.c,v 1.12 2014/03/11 20:22:47 pooka Exp $");
#include "opt_ddb.h"
@@ -227,7 +227,7 @@
mutex_exit(uobj->vmobjlock);
}
-#if (defined(DDB) || defined(DEBUGPRINT)) && !defined(_RUMPKERNEL)
+#if defined(DDB) || defined(DEBUGPRINT)
/*
* uvm_object_printit: actually prints the object
Home |
Main Index |
Thread Index |
Old Index