diff options
author | Juli Mallett <jmallett@FreeBSD.org> | 2002-09-17 21:26:57 +0000 |
---|---|---|
committer | Juli Mallett <jmallett@FreeBSD.org> | 2002-09-17 21:26:57 +0000 |
commit | 0fd9fa89a98b14d8c6d0c6a16ef9e4c8c3ac8428 (patch) | |
tree | a42796322839b4772b32df9af3111e6ab29fdb2f | |
parent | ff5250b3e7a456c8d58e6c383c7376c3fbe7892d (diff) |
Print debugging from DEBUG(VAR) level to stderr. About to macroise this.
(Read: More commits to come).
MFC in: 4 days.
Notes
Notes:
svn path=/head/; revision=103502
-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 6a472a2256a7..3767883ee25d 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) { |