Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Wrap a debugging printf in IFAREF_DEBUG.
details: https://anonhg.NetBSD.org/src/rev/f417a175fa17
branches: trunk
changeset: 481617:f417a175fa17
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Feb 02 18:02:08 2000 +0000
description:
Wrap a debugging printf in IFAREF_DEBUG.
diffstat:
sys/net/route.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 3e82a13e7a83 -r f417a175fa17 sys/net/route.c
--- a/sys/net/route.c Wed Feb 02 17:54:07 2000 +0000
+++ b/sys/net/route.c Wed Feb 02 18:02:08 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: route.c,v 1.30 2000/02/01 22:52:05 thorpej Exp $ */
+/* $NetBSD: route.c,v 1.31 2000/02/02 18:02:08 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -245,7 +245,9 @@
if (ifa->ifa_refcnt != 0)
panic("ifafree: ifa_refcnt != 0 (%d)", ifa->ifa_refcnt);
#endif
-printf("ifafree: freeing ifaddr %p\n", ifa);
+#ifdef IFAREF_DEBUG
+ printf("ifafree: freeing ifaddr %p\n", ifa);
+#endif
free(ifa, M_IFADDR);
}
Home |
Main Index |
Thread Index |
Old Index