Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make make(1): merge duplicate code for -DDEBUG_SRC



details:   https://anonhg.NetBSD.org/src/rev/9dbbe067c583
branches:  trunk
changeset: 941433:9dbbe067c583
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Oct 21 06:12:16 2020 +0000

description:
make(1): merge duplicate code for -DDEBUG_SRC

diffstat:

 usr.bin/make/suff.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (50 lines):

diff -r b75862731f32 -r 9dbbe067c583 usr.bin/make/suff.c
--- a/usr.bin/make/suff.c       Wed Oct 21 01:58:30 2020 +0000
+++ b/usr.bin/make/suff.c       Wed Oct 21 06:12:16 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: suff.c,v 1.199 2020/10/20 23:04:35 rillig Exp $        */
+/*     $NetBSD: suff.c,v 1.200 2020/10/21 06:12:16 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -129,7 +129,7 @@
 #include "dir.h"
 
 /*     "@(#)suff.c     8.4 (Berkeley) 3/21/94" */
-MAKE_RCSID("$NetBSD: suff.c,v 1.199 2020/10/20 23:04:35 rillig Exp $");
+MAKE_RCSID("$NetBSD: suff.c,v 1.200 2020/10/21 06:12:16 rillig Exp $");
 
 #define SUFF_DEBUG0(text) DEBUG0(SUFF, text)
 #define SUFF_DEBUG1(fmt, arg1) DEBUG1(SUFF, fmt, arg1)
@@ -845,6 +845,7 @@
     SrcListNode *ln;
     for (ln = srcList->first; ln != NULL; ln = ln->next)
        debug_printf(" %p", ln->datum);
+    debug_printf("\n");
 }
 #endif
 
@@ -867,7 +868,6 @@
     Lst_Append(targ->cp, s2);
     debug_printf("%s add %p %p to %p:", debug_tag, targ, s2, srcList);
     SrcList_PrintAddrs(srcList);
-    debug_printf("\n");
 #endif
 }
 
@@ -922,7 +922,6 @@
 #ifdef DEBUG_SRC
     debug_printf("cleaning %p:", l);
     SrcList_PrintAddrs(l);
-    debug_printf("\n");
 #endif
 
     while ((ln = Lst_Next(l)) != NULL) {
@@ -952,7 +951,6 @@
        else {
            debug_printf("keep: [l=%p] p=%p %d:", l, s, s->children);
            SrcList_PrintAddrs(s->cp);
-           debug_printf("\n");
        }
 #endif
     }



Home | Main Index | Thread Index | Old Index