Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Suppress noisy debugging outputs
details: https://anonhg.NetBSD.org/src/rev/b3cd68031c34
branches: trunk
changeset: 358841:b3cd68031c34
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Fri Jan 19 08:01:05 2018 +0000
description:
Suppress noisy debugging outputs
Even if DEBUG they are too noisy under load.
diffstat:
sys/net/route.c | 6 +++---
sys/netinet/in.c | 8 ++++----
sys/netinet6/in6.c | 8 ++++----
3 files changed, 11 insertions(+), 11 deletions(-)
diffs (99 lines):
diff -r bcf0cd4f743e -r b3cd68031c34 sys/net/route.c
--- a/sys/net/route.c Fri Jan 19 07:58:25 2018 +0000
+++ b/sys/net/route.c Fri Jan 19 08:01:05 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: route.c,v 1.203 2018/01/09 19:52:29 christos Exp $ */
+/* $NetBSD: route.c,v 1.204 2018/01/19 08:01:05 ozaki-r Exp $ */
/*-
* Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
#endif
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.203 2018/01/09 19:52:29 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.204 2018/01/19 08:01:05 ozaki-r Exp $");
#include <sys/param.h>
#ifdef RTFLUSH_DEBUG
@@ -143,7 +143,7 @@
#define RT_REFCNT_TRACE(rt) do {} while (0)
#endif
-#ifdef DEBUG
+#ifdef RT_DEBUG
#define dlog(level, fmt, args...) log(level, fmt, ##args)
#else
#define dlog(level, fmt, args...) do {} while (0)
diff -r bcf0cd4f743e -r b3cd68031c34 sys/netinet/in.c
--- a/sys/netinet/in.c Fri Jan 19 07:58:25 2018 +0000
+++ b/sys/netinet/in.c Fri Jan 19 08:01:05 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in.c,v 1.215 2018/01/15 08:17:34 ozaki-r Exp $ */
+/* $NetBSD: in.c,v 1.216 2018/01/19 08:01:05 ozaki-r Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.215 2018/01/15 08:17:34 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.216 2018/01/19 08:01:05 ozaki-r Exp $");
#include "arp.h"
@@ -2155,7 +2155,7 @@
lle = in_lltable_find_dst(llt, sin->sin_addr);
if (lle == NULL) {
-#ifdef DEBUG
+#ifdef LLTABLE_DEBUG
char buf[64];
sockaddr_format(l3addr, buf, sizeof(buf));
log(LOG_INFO, "%s: cache for %s is not found\n",
@@ -2166,7 +2166,7 @@
LLE_WLOCK(lle);
lle->la_flags |= LLE_DELETED;
-#ifdef DEBUG
+#ifdef LLTABLE_DEBUG
{
char buf[64];
sockaddr_format(l3addr, buf, sizeof(buf));
diff -r bcf0cd4f743e -r b3cd68031c34 sys/netinet6/in6.c
--- a/sys/netinet6/in6.c Fri Jan 19 07:58:25 2018 +0000
+++ b/sys/netinet6/in6.c Fri Jan 19 08:01:05 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in6.c,v 1.258 2018/01/15 08:17:35 ozaki-r Exp $ */
+/* $NetBSD: in6.c,v 1.259 2018/01/19 08:01:05 ozaki-r Exp $ */
/* $KAME: in6.c,v 1.198 2001/07/18 09:12:38 itojun Exp $ */
/*
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.258 2018/01/15 08:17:35 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.259 2018/01/19 08:01:05 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -2572,7 +2572,7 @@
lle = in6_lltable_find_dst(llt, &sin6->sin6_addr);
if (lle == NULL) {
-#ifdef DEBUG
+#ifdef LLTABLE_DEBUG
char buf[64];
sockaddr_format(l3addr, buf, sizeof(buf));
log(LOG_INFO, "%s: cache for %s is not found\n",
@@ -2583,7 +2583,7 @@
LLE_WLOCK(lle);
lle->la_flags |= LLE_DELETED;
-#ifdef DEBUG
+#ifdef LLTABLE_DEBUG
{
char buf[64];
sockaddr_format(l3addr, buf, sizeof(buf));
Home |
Main Index |
Thread Index |
Old Index