summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/targ.c
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-09-18 16:13:03 +0000
committerjmallett <jmallett@FreeBSD.org>2002-09-18 16:13:03 +0000
commitb1a7ec95a8c436a372ffbd98f7bc0dd1ac347451 (patch)
treea7eadfee50e5871652c0862c86c068d7542d59b1 /usr.bin/make/targ.c
parent9d78d39578a32950b1e4b145c514518052390c70 (diff)
downloadFreeBSD-src-b1a7ec95a8c436a372ffbd98f7bc0dd1ac347451.zip
FreeBSD-src-b1a7ec95a8c436a372ffbd98f7bc0dd1ac347451.tar.gz
Make the DEBUGF() macro portable by (ugh) adding a Debug() function, which
is merely printf() but to stderr. This takes care of the caveat which lead to the use of a vararg macro -- getting everything to stderr.
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 86bd080..04611e0 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): DEBUGF(TARG, "." #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: DEBUGF(TARG, ".MEMBER "); break;
+ case OP_MEMBER: DEBUGF(TARG, (".MEMBER ")); break;
PRINTDBIT(ARCHV);
}
}
OpenPOWER on IntegriCloud