summaryrefslogtreecommitdiff
path: root/rpmio/macro.c
diff options
context:
space:
mode:
authorJindrich Novy <jnovy@redhat.com>2010-07-13 13:35:22 +0200
committerJindrich Novy <jnovy@redhat.com>2010-07-13 13:35:22 +0200
commit7f220202f20c69d6f3fd957325cdbe692bbabedd (patch)
tree4a215be9ff19a8db331b736e915cca24b68f1fe0 /rpmio/macro.c
parent60be56e317b1a18f0d71a2dc71c6fb18f26e19b9 (diff)
downloadrpm-7f220202f20c69d6f3fd957325cdbe692bbabedd.tar.gz
rpm-7f220202f20c69d6f3fd957325cdbe692bbabedd.tar.bz2
rpm-7f220202f20c69d6f3fd957325cdbe692bbabedd.zip
Redirect macro stack backtrace printing to debug log.
Diffstat (limited to 'rpmio/macro.c')
-rw-r--r--rpmio/macro.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpmio/macro.c b/rpmio/macro.c
index 2927a637e..b51854b50 100644
--- a/rpmio/macro.c
+++ b/rpmio/macro.c
@@ -366,7 +366,7 @@ printExpansion(MacroBuf mb, const char * t, const char * te)
int choplen;
if (!(te > t)) {
- fprintf(stderr, _("%3d<%*s(empty)\n"), mb->depth, (2 * mb->depth + 1), "");
+ rpmlog(RPMLOG_DEBUG, _("%3d<%*s(empty)\n"), mb->depth, (2 * mb->depth + 1), "");
return;
}
@@ -389,10 +389,10 @@ printExpansion(MacroBuf mb, const char * t, const char * te)
}
}
- fprintf(stderr, "%3d<%*s", mb->depth, (2 * mb->depth + 1), "");
+ rpmlog(RPMLOG_DEBUG,"%3d<%*s", mb->depth, (2 * mb->depth + 1), "");
if (te > t)
- fprintf(stderr, "%.*s%s", (int)(te - t), t, ellipsis);
- fprintf(stderr, "\n");
+ rpmlog(RPMLOG_DEBUG, "%.*s%s", (int)(te - t), t, ellipsis);
+ rpmlog(RPMLOG_DEBUG, "\n");
}
#define SKIPBLANK(_s, _c) \