Source-Changes-HG archive

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

[src/trunk]: src/libexec/makewhatis remove debugging printfs.



details:   https://anonhg.NetBSD.org/src/rev/630f354cfc13
branches:  trunk
changeset: 579984:630f354cfc13
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Apr 03 20:31:18 2005 +0000

description:
remove debugging printfs.

diffstat:

 libexec/makewhatis/makewhatis.c |  11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diffs (54 lines):

diff -r 16af74d8daaf -r 630f354cfc13 libexec/makewhatis/makewhatis.c
--- a/libexec/makewhatis/makewhatis.c   Sun Apr 03 20:30:39 2005 +0000
+++ b/libexec/makewhatis/makewhatis.c   Sun Apr 03 20:31:18 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: makewhatis.c,v 1.32 2005/04/03 20:30:39 christos Exp $ */
+/*     $NetBSD: makewhatis.c,v 1.33 2005/04/03 20:31:18 christos Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
 #if !defined(lint)
 __COPYRIGHT("@(#) Copyright (c) 1999 The NetBSD Foundation, Inc.\n\
        All rights reserved.\n");
-__RCSID("$NetBSD: makewhatis.c,v 1.32 2005/04/03 20:30:39 christos Exp $");
+__RCSID("$NetBSD: makewhatis.c,v 1.33 2005/04/03 20:31:18 christos Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -492,8 +492,6 @@
        }
        while (buffer[0] == '\n');
 
-printf("buffer %s\n", buffer);
-
        section = NULL;
        if ((ptr = strchr(buffer, '(')) != NULL) {
                if ((last = strchr(ptr + 1, ')')) !=NULL) {
@@ -507,8 +505,6 @@
                }
        }
 
-printf("section %s\n", section);
-
        for (;;) {
                if (GetS(in, buffer, sizeof(buffer)) == NULL) {
                        free(section);
@@ -519,7 +515,6 @@
                        break;
        }
 
-printf("buffer2 %s\n", buffer);
        ptr = last = buffer;
        size = sizeof(buffer) - 1;
        while ((size > 0) && (GetS(in, ptr, size) != NULL)) {
@@ -531,9 +526,7 @@
                if (length == 0) {
                        *last = '\0';
 
-printf("buffer [%s] section [%s]\n", buffer, section);
                        ptr = replacestring(buffer, " -- ", section);
-printf("ptr %s\n", ptr);
                        free(section);
                        return ptr;
                }



Home | Main Index | Thread Index | Old Index