Module Name: src Committed By: rillig Date: Mon Oct 19 21:38:10 UTC 2020
Modified Files: src/usr.bin/make: suff.c Log Message: make(1): use consistent formatting for DEBUG_SRC No trailing whitespace anymore, %p instead of %lx. To generate a diff of this commit: cvs rdiff -u -r1.193 -r1.194 src/usr.bin/make/suff.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/make/suff.c diff -u src/usr.bin/make/suff.c:1.193 src/usr.bin/make/suff.c:1.194 --- src/usr.bin/make/suff.c:1.193 Mon Oct 19 21:33:09 2020 +++ src/usr.bin/make/suff.c Mon Oct 19 21:38:10 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: suff.c,v 1.193 2020/10/19 21:33:09 rillig Exp $ */ +/* $NetBSD: suff.c,v 1.194 2020/10/19 21:38:10 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.193 2020/10/19 21:33:09 rillig Exp $"); +MAKE_RCSID("$NetBSD: suff.c,v 1.194 2020/10/19 21:38:10 rillig Exp $"); #define SUFF_DEBUG0(text) DEBUG0(SUFF, text) #define SUFF_DEBUG1(fmt, arg1) DEBUG1(SUFF, fmt, arg1) @@ -878,10 +878,8 @@ static void SrcList_PrintAddrs(SrcList *srcList) { SrcListNode *ln; - for (ln = srcList->first; ln != NULL; ln = ln->next) { - Src *src = ln->datum; - printf("%lx ", (unsigned long) src); - } + for (ln = srcList->first; ln != NULL; ln = ln->next) + debug_printf(" %p", ln->datum); } #endif @@ -957,7 +955,7 @@ SuffRemoveSrc(SrcList *l) Lst_Open(l); #ifdef DEBUG_SRC - debug_printf("cleaning %lx: ", (unsigned long) l); + debug_printf("cleaning %p:", l); SrcList_PrintAddrs(l); debug_printf("\n"); #endif @@ -987,7 +985,7 @@ SuffRemoveSrc(SrcList *l) } #ifdef DEBUG_SRC else { - debug_printf("keep: [l=%p] p=%p %d: ", l, s, s->children); + debug_printf("keep: [l=%p] p=%p %d:", l, s, s->children); SrcList_PrintAddrs(s->cp); debug_printf("\n"); }