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): add suffix number to the debug log



details:   https://anonhg.NetBSD.org/src/rev/8e84ab02b181
branches:  trunk
changeset: 956107:8e84ab02b181
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Oct 21 08:20:13 2020 +0000

description:
make(1): add suffix number to the debug log

Previously, I had taken that lonely number in the debug log for the
sNum, but it was the reference count.

diffstat:

 usr.bin/make/suff.c                         |  6 +++---
 usr.bin/make/unit-tests/deptgt-suffixes.exp |  2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r c95aba8be6e2 -r 8e84ab02b181 usr.bin/make/suff.c
--- a/usr.bin/make/suff.c       Wed Oct 21 08:18:24 2020 +0000
+++ b/usr.bin/make/suff.c       Wed Oct 21 08:20:13 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: suff.c,v 1.211 2020/10/21 08:00:06 rillig Exp $        */
+/*     $NetBSD: suff.c,v 1.212 2020/10/21 08:20:13 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.211 2020/10/21 08:00:06 rillig Exp $");
+MAKE_RCSID("$NetBSD: suff.c,v 1.212 2020/10/21 08:20:13 rillig Exp $");
 
 #define SUFF_DEBUG0(text) DEBUG0(SUFF, text)
 #define SUFF_DEBUG1(fmt, arg1) DEBUG1(SUFF, fmt, arg1)
@@ -2079,7 +2079,7 @@
 static void
 PrintSuff(Suff *s)
 {
-    debug_printf("# `%s' [%d] ", s->name, s->refCount);
+    debug_printf("# \"%s\" (num %d, ref %d)", s->name, s->sNum, s->refCount);
     if (s->flags != 0) {
        char flags_buf[SuffFlags_ToStringSize];
 
diff -r c95aba8be6e2 -r 8e84ab02b181 usr.bin/make/unit-tests/deptgt-suffixes.exp
--- a/usr.bin/make/unit-tests/deptgt-suffixes.exp       Wed Oct 21 08:18:24 2020 +0000
+++ b/usr.bin/make/unit-tests/deptgt-suffixes.exp       Wed Oct 21 08:20:13 2020 +0000
@@ -1,5 +1,5 @@
 #*** Suffixes:
-# `.custom-null' [1]  (SUFF_NULL)
+# ".custom-null" (num 1, ref 1) (SUFF_NULL)
 #      To: 
 #      From: 
 #      Search Path: . .. 



Home | Main Index | Thread Index | Old Index