diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-09-18 16:13:03 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-09-18 16:13:03 +0000 |
commit | b1a7ec95a8c436a372ffbd98f7bc0dd1ac347451 (patch) | |
tree | a7eadfee50e5871652c0862c86c068d7542d59b1 /usr.bin/make/cond.c | |
parent | 9d78d39578a32950b1e4b145c514518052390c70 (diff) | |
download | FreeBSD-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/cond.c')
-rw-r--r-- | usr.bin/make/cond.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/make/cond.c b/usr.bin/make/cond.c index cfdde15..dcf7b55 100644 --- a/usr.bin/make/cond.c +++ b/usr.bin/make/cond.c @@ -657,8 +657,8 @@ do_string_compare: string = (char *)Buf_GetAll(buf, (int *)0); Buf_Destroy(buf, FALSE); - DEBUGF(COND, "lhs = \"%s\", rhs = \"%s\", op = %.2s\n", - lhs, string, op); + DEBUGF(COND, ("lhs = \"%s\", rhs = \"%s\", op = %.2s\n", + lhs, string, op)); /* * Null-terminate rhs and perform the comparison. * t is set to the result. @@ -718,8 +718,8 @@ do_string_compare: } } - DEBUGF(COND, "left = %f, right = %f, op = %.2s\n", left, - right, op); + DEBUGF(COND, ("left = %f, right = %f, op = %.2s\n", left, + right, op)); switch(op[0]) { case '!': if (op[1] != '=') { |