Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Remove spammy kevent failure printf.
details: https://anonhg.NetBSD.org/src/rev/f7c81fa61e42
branches: trunk
changeset: 357852:f7c81fa61e42
user: riastradh <riastradh%NetBSD.org@localhost>
date: Thu Nov 30 05:52:40 2017 +0000
description:
Remove spammy kevent failure printf.
Maybe this was once useful for debugging the kernel, but it's just
console spam triggered by buggy or malicious userland programs now.
diffstat:
sys/kern/kern_event.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diffs (31 lines):
diff -r d3659448896e -r f7c81fa61e42 sys/kern/kern_event.c
--- a/sys/kern/kern_event.c Thu Nov 30 05:47:24 2017 +0000
+++ b/sys/kern/kern_event.c Thu Nov 30 05:52:40 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_event.c,v 1.98 2017/11/11 03:58:01 christos Exp $ */
+/* $NetBSD: kern_event.c,v 1.99 2017/11/30 05:52:40 riastradh Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.98 2017/11/11 03:58:01 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.99 2017/11/30 05:52:40 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1063,12 +1063,6 @@
error = (*kfilter->filtops->f_attach)(kn);
KERNEL_UNLOCK_ONE(NULL); /* XXXSMP */
if (error != 0) {
-#ifdef DIAGNOSTIC
- printf("%s: event type %d not supported for "
- "file type %d (error %d)\n", __func__,
- kn->kn_filter, kn->kn_obj ?
- ((file_t *)kn->kn_obj)->f_type : -1, error);
-#endif
/* knote_detach() drops fdp->fd_lock */
knote_detach(kn, fdp, false);
goto done;
Home |
Main Index |
Thread Index |
Old Index