Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Revert accidentally committed debug code. Sorry.



details:   https://anonhg.NetBSD.org/src/rev/f4fd0f183890
branches:  trunk
changeset: 953277:f4fd0f183890
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Mar 04 01:37:42 2021 +0000

description:
Revert accidentally committed debug code. Sorry.

diffstat:

 sys/kern/uipc_mbuf.c |  21 ++-------------------
 1 files changed, 2 insertions(+), 19 deletions(-)

diffs (56 lines):

diff -r 8a1ad3178cb1 -r f4fd0f183890 sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c      Thu Mar 04 01:35:31 2021 +0000
+++ b/sys/kern/uipc_mbuf.c      Thu Mar 04 01:37:42 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_mbuf.c,v 1.242 2021/03/04 01:35:31 msaitoh Exp $  */
+/*     $NetBSD: uipc_mbuf.c,v 1.243 2021/03/04 01:37:42 msaitoh Exp $  */
 
 /*
  * Copyright (c) 1999, 2001, 2018 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.242 2021/03/04 01:35:31 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.243 2021/03/04 01:37:42 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_mbuftrace.h"
@@ -120,7 +120,6 @@
 
 MALLOC_DEFINE(M_MBUF, "mbuf", "mbuf");
 
-void *watchpoint = (void *)0xdeadbeefdeadbeef;
 static percpu_t *mbstat_percpu;
 
 #ifdef MBUFTRACE
@@ -1993,7 +1992,6 @@
        return n;
 }
 
-#if 0
 void
 m_freem(struct mbuf *m)
 {
@@ -2003,21 +2001,6 @@
                m = m_free(m);
        } while (m);
 }
-#else
-void
-M_FREEM(struct mbuf *m, const char *func, int line)
-{
-       if (m == NULL)
-               return;
-       do {
-               if (((m->m_flags & M_EXT) != 0) &&
-                   (m->m_ext.ext_arg == watchpoint))
-                       printf("catch %p (%s line %d)\n", watchpoint,
-                           func, line);
-               m = m_free(m);
-       } while (m);
-}
-#endif
 
 #if defined(DDB)
 void



Home | Main Index | Thread Index | Old Index