Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm remove diag-only printf() that fires when an unlinke...



details:   https://anonhg.NetBSD.org/src/rev/1eba3df59758
branches:  trunk
changeset: 1021828:1eba3df59758
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Jun 20 07:11:38 2021 +0000

description:
remove diag-only printf() that fires when an unlinked file is mmapped
and someone runs ps(1) or similar.

diffstat:

 sys/uvm/uvm_map.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (30 lines):

diff -r 002913aef4fb -r 1eba3df59758 sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Sun Jun 20 00:25:29 2021 +0000
+++ b/sys/uvm/uvm_map.c Sun Jun 20 07:11:38 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_map.c,v 1.388 2021/04/17 21:37:21 mrg Exp $        */
+/*     $NetBSD: uvm_map.c,v 1.389 2021/06/20 07:11:38 mrg Exp $        */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.388 2021/04/17 21:37:21 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.389 2021/06/20 07:11:38 mrg Exp $");
 
 #include "opt_ddb.h"
 #include "opt_pax.h"
@@ -5164,11 +5164,6 @@
                                kve->kve_vn_fsid = va.va_fsid;
                                error = vnode_to_path(kve->kve_path,
                                    sizeof(kve->kve_path) / 2, vp, l, p);
-#ifdef DIAGNOSTIC
-                               if (error)
-                                       printf("%s: vp %p error %d\n", __func__,
-                                               vp, error);
-#endif
                        }
                } else if (UVM_OBJ_IS_KERN_OBJECT(uobj)) {
                        kve->kve_type = KVME_TYPE_KERN;



Home | Main Index | Thread Index | Old Index