Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen Remove my private hack for watching how sysctl ...



details:   https://anonhg.NetBSD.org/src/rev/3d548d8427de
branches:  trunk
changeset: 559828:3d548d8427de
user:      atatat <atatat%NetBSD.org@localhost>
date:      Wed Mar 24 16:29:10 2004 +0000

description:
Remove my private hack for watching how sysctl works.  That's not
supposed to be there.

diffstat:

 lib/libc/gen/sysctl.c |  24 ++----------------------
 1 files changed, 2 insertions(+), 22 deletions(-)

diffs (45 lines):

diff -r 52e3b1751f85 -r 3d548d8427de lib/libc/gen/sysctl.c
--- a/lib/libc/gen/sysctl.c     Wed Mar 24 16:21:06 2004 +0000
+++ b/lib/libc/gen/sysctl.c     Wed Mar 24 16:29:10 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysctl.c,v 1.16 2004/03/24 15:34:56 atatat Exp $       */
+/*     $NetBSD: sysctl.c,v 1.17 2004/03/24 16:29:10 atatat Exp $       */
 
 /*-
  * Copyright (c) 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)sysctl.c   8.2 (Berkeley) 1/4/94";
 #else
-__RCSID("$NetBSD: sysctl.c,v 1.16 2004/03/24 15:34:56 atatat Exp $");
+__RCSID("$NetBSD: sysctl.c,v 1.17 2004/03/24 16:29:10 atatat Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -71,26 +71,6 @@
        size_t oldlen, savelen;
        int error;
 
-       if (getenv("SYSCTL_TRACE") != NULL) {
-               char trb[128];
-               uint l, i;
-
-               l = snprintf(trb, sizeof(trb), "sysctl(%p {", name);
-               write(2, &trb[0], l);
-               for (i = 0; i < namelen; i++) {
-                       l = snprintf(trb, sizeof(trb), "%s%d", i ? "." : "",
-                                    name[i]);
-                       write(2, &trb[0], l);
-               }
-               l = snprintf(trb, sizeof(trb), "}, %d, %p, %p (%lu), %p, %lu)\n",
-                            namelen,
-                            oldp,
-                            oldlenp, (ulong)(oldlenp ? *oldlenp : 0),
-                            newp,
-                            (ulong)newlen);
-               write(2, &trb[0], l);
-       }
-
        if (name[0] != CTL_USER)
                /* LINTED will fix when sysctl interface gets corrected */
                /* XXX when will that be? */



Home | Main Index | Thread Index | Old Index