Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Remove useless debugging messages which achieved no...



details:   https://anonhg.NetBSD.org/src/rev/13c5d3266bdd
branches:  trunk
changeset: 452309:13c5d3266bdd
user:      maxv <maxv%NetBSD.org@localhost>
date:      Wed Jun 26 20:28:59 2019 +0000

description:
Remove useless debugging messages which achieved nothing but hiding bugs.

diffstat:

 sys/kern/kern_exec.c |  13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

diffs (43 lines):

diff -r 9ea7fc4abcb4 -r 13c5d3266bdd sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c      Wed Jun 26 17:50:22 2019 +0000
+++ b/sys/kern/kern_exec.c      Wed Jun 26 20:28:59 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_exec.c,v 1.473 2019/06/26 00:30:39 christos Exp $ */
+/*     $NetBSD: kern_exec.c,v 1.474 2019/06/26 20:28:59 maxv Exp $     */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.473 2019/06/26 00:30:39 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.474 2019/06/26 20:28:59 maxv Exp $");
 
 #include "opt_exec.h"
 #include "opt_execfmt.h"
@@ -629,10 +629,8 @@
        } else {
                error = copyinstr(upath, path, MAXPATHLEN, &len);
        }
-       if (error) {
-               DPRINTF(("%s: copyin path @%p %d\n", __func__, upath, error));
+       if (error)
                goto err;
-       }
 
        if (path[0] == '/') {
                if (offs)
@@ -653,11 +651,8 @@
            GETCWD_CHECK_ACCESS, l);
        rw_exit(&cwdi->cwdi_lock);
 
-       if (error) {
-               DPRINTF(("%s: getcwd_common path %s %d\n", __func__, path,
-                   error));
+       if (error)
                goto err;
-       }
        tlen = path + MAXPATHLEN - bp;
 
        memmove(path, bp, tlen);



Home | Main Index | Thread Index | Old Index