Module Name: src Committed By: maxv Date: Wed Jun 26 20:28:59 UTC 2019
Modified Files: src/sys/kern: kern_exec.c Log Message: Remove useless debugging messages which achieved nothing but hiding bugs. To generate a diff of this commit: cvs rdiff -u -r1.473 -r1.474 src/sys/kern/kern_exec.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/kern_exec.c diff -u src/sys/kern/kern_exec.c:1.473 src/sys/kern/kern_exec.c:1.474 --- src/sys/kern/kern_exec.c:1.473 Wed Jun 26 00:30:39 2019 +++ src/sys/kern/kern_exec.c Wed Jun 26 20:28:59 2019 @@ -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 @@ exec_makepathbuf(struct lwp *l, const ch } 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 @@ exec_makepathbuf(struct lwp *l, const ch 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);