From 7f220202f20c69d6f3fd957325cdbe692bbabedd Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Tue, 13 Jul 2010 13:35:22 +0200 Subject: [PATCH] Redirect macro stack backtrace printing to debug log. --- rpmio/macro.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpmio/macro.c b/rpmio/macro.c index 2927a63..b51854b 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) \ -- 2.7.4