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/9803807c3e2f
branches: trunk
changeset: 962095:9803807c3e2f
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 1f9a582332a5 -r 9803807c3e2f 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