diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-09-17 22:31:26 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-09-17 22:31:26 +0000 |
commit | 7fd8427cf78ed3d6ed80aafb4dd8b2ae5c85715b (patch) | |
tree | e9bbc739d9ad215c67355ae9b0a1a298016a17b9 /usr.bin/make/parse.c | |
parent | 086f36bd966184831309cca6a2187aa38f6b0393 (diff) | |
download | FreeBSD-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/parse.c')
-rw-r--r-- | usr.bin/make/parse.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index d848c62..8a8b91a 100644 --- a/usr.bin/make/parse.c +++ b/usr.bin/make/parse.c @@ -1813,8 +1813,7 @@ Parse_FromString(str) { IFile *oldFile; /* state associated with this file */ - if (DEBUG(FOR)) - (void) fprintf(stderr, "%s\n----\n", str); + DEBUGF(FOR, "%s\n----\n", str); oldFile = (IFile *) emalloc (sizeof (IFile)); oldFile->lineno = lineno; |