summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/targ.c
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-09-17 22:31:26 +0000
committerjmallett <jmallett@FreeBSD.org>2002-09-17 22:31:26 +0000
commit7fd8427cf78ed3d6ed80aafb4dd8b2ae5c85715b (patch)
treee9bbc739d9ad215c67355ae9b0a1a298016a17b9 /usr.bin/make/targ.c
parent086f36bd966184831309cca6a2187aa38f6b0393 (diff)
downloadFreeBSD-src-7fd8427cf78ed3d6ed80aafb4dd8b2ae5c85715b.zip
FreeBSD-src-7fd8427cf78ed3d6ed80aafb4dd8b2ae5c85715b.tar.gz
Move common use of if (DEBUG(FOO)) printf... to DEBUGF(FOO, ...), using
variable length arguments to a macro. Bump version as this makes DEBUG statements *always* go to stderr rather than sometimes stdout. There are a few stragglers, which I will take care of as soon as I can. Mostly these relate to the need-for-death-of some of the remote job code. Nearby stylistic nits and XXX added/fixed where appropriate.
Diffstat (limited to 'usr.bin/make/targ.c')
-rw-r--r--usr.bin/make/targ.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/make/targ.c b/usr.bin/make/targ.c
index a9bf383..86bd080 100644
--- a/usr.bin/make/targ.c
+++ b/usr.bin/make/targ.c
@@ -488,7 +488,7 @@ Targ_PrintType (type)
int tbit;
#define PRINTBIT(attr) case CONCAT(OP_,attr): printf("." #attr " "); break
-#define PRINTDBIT(attr) case CONCAT(OP_,attr): if (DEBUG(TARG)) printf("." #attr " "); break
+#define PRINTDBIT(attr) case CONCAT(OP_,attr): DEBUGF(TARG, "." #attr " "); break
type &= ~OP_OPMASK;
@@ -509,7 +509,7 @@ Targ_PrintType (type)
PRINTBIT(NOTMAIN);
PRINTDBIT(LIB);
/*XXX: MEMBER is defined, so CONCAT(OP_,MEMBER) gives OP_"%" */
- case OP_MEMBER: if (DEBUG(TARG)) printf(".MEMBER "); break;
+ case OP_MEMBER: DEBUGF(TARG, ".MEMBER "); break;
PRINTDBIT(ARCHV);
}
}
OpenPOWER on IntegriCloud