diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-09-17 21:26:57 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-09-17 21:26:57 +0000 |
commit | a336071222c6757d8ada53c28f4d6743131fb475 (patch) | |
tree | a42796322839b4772b32df9af3111e6ab29fdb2f /usr.bin | |
parent | 4e1f277a4f40451518cab3b397dedec9e1e68087 (diff) | |
download | FreeBSD-src-a336071222c6757d8ada53c28f4d6743131fb475.zip FreeBSD-src-a336071222c6757d8ada53c28f4d6743131fb475.tar.gz |
Print debugging from DEBUG(VAR) level to stderr. About to macroise this.
(Read: More commits to come).
MFC in: 4 days.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/make/var.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/make/var.c b/usr.bin/make/var.c index 6a472a2..3767883 100644 --- a/usr.bin/make/var.c +++ b/usr.bin/make/var.c @@ -397,7 +397,7 @@ VarAdd (name, val, ctxt) (void) Lst_AtFront (ctxt->context, (void *)v); (void) Lst_AtEnd (allVars, (void *) v); if (DEBUG(VAR)) { - printf("%s:%s = %s\n", ctxt->name, name, val); + fprintf(stderr, "%s:%s = %s\n", ctxt->name, name, val); } } @@ -447,7 +447,7 @@ Var_Delete(name, ctxt) LstNode ln; if (DEBUG(VAR)) { - printf("%s:delete %s\n", ctxt->name, name); + fprintf(stderr, "%s:delete %s\n", ctxt->name, name); } ln = Lst_Find(ctxt->context, (void *)name, VarCmp); if (ln != NULL) { @@ -504,7 +504,7 @@ Var_Set (name, val, ctxt) Buf_AddBytes(v->val, strlen(val), (Byte *)val); if (DEBUG(VAR)) { - printf("%s:%s = %s\n", ctxt->name, name, val); + fprintf(stderr, "%s:%s = %s\n", ctxt->name, name, val); } } /* @@ -557,7 +557,7 @@ Var_Append (name, val, ctxt) Buf_AddBytes(v->val, strlen(val), (Byte *)val); if (DEBUG(VAR)) { - printf("%s:%s = %s\n", ctxt->name, name, + fprintf(stderr, "%s:%s = %s\n", ctxt->name, name, (char *) Buf_GetAll(v->val, (int *)NULL)); } @@ -1781,7 +1781,7 @@ Var_Parse (str, ctxt, err, lengthPtr, freePtr) char termc; /* Character which terminated scan */ if (DEBUG(VAR)) { - printf("Applying :%c to \"%s\"\n", *tstr, str); + fprintf(stderr, "Applying :%c to \"%s\"\n", *tstr, str); } switch (*tstr) { case 'U': @@ -2252,7 +2252,7 @@ Var_Parse (str, ctxt, err, lengthPtr, freePtr) } } if (DEBUG(VAR)) { - printf("Result is \"%s\"\n", newStr); + fprintf(stderr, "Result is \"%s\"\n", newStr); } if (*freePtr) { |