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): make debug logging more precise in Suf...



details:   https://anonhg.NetBSD.org/src/rev/920ff888e85b
branches:  trunk
changeset: 957166:920ff888e85b
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Nov 21 09:19:46 2020 +0000

description:
make(1): make debug logging more precise in Suff_EndTransform

diffstat:

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

diffs (34 lines):

diff -r e95ee2500885 -r 920ff888e85b usr.bin/make/suff.c
--- a/usr.bin/make/suff.c       Sat Nov 21 09:16:44 2020 +0000
+++ b/usr.bin/make/suff.c       Sat Nov 21 09:19:46 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: suff.c,v 1.253 2020/11/21 09:16:44 rillig Exp $        */
+/*     $NetBSD: suff.c,v 1.254 2020/11/21 09:19:46 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -114,7 +114,7 @@
 #include "dir.h"
 
 /*     "@(#)suff.c     8.4 (Berkeley) 3/21/94" */
-MAKE_RCSID("$NetBSD: suff.c,v 1.253 2020/11/21 09:16:44 rillig Exp $");
+MAKE_RCSID("$NetBSD: suff.c,v 1.254 2020/11/21 09:19:46 rillig Exp $");
 
 #define SUFF_DEBUG0(text) DEBUG0(SUFF, text)
 #define SUFF_DEBUG1(fmt, arg1) DEBUG1(SUFF, fmt, arg1)
@@ -562,12 +562,11 @@
     if (!SuffParseTransform(gn->name, &srcSuff, &targSuff))
        return;
 
+    SUFF_DEBUG2("deleting incomplete transformation from `%s' to `%s'\n",
+               srcSuff->name, targSuff->name);
+
     /* Remember parents since srcSuff could be deleted in SuffList_Remove. */
     srcSuffParents = srcSuff->parents;
-
-    SUFF_DEBUG2("deleting transformation from `%s' to `%s'\n",
-               srcSuff->name, targSuff->name);
-
     SuffList_Remove(targSuff->children, srcSuff);
     SuffList_Remove(srcSuffParents, targSuff);
 }



Home | Main Index | Thread Index | Old Index