From 3d94b4f594eafcbb0d4394416ddd82e79de58551 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 18 Feb 2010 12:26:03 +0200 Subject: [PATCH] Add debug output for file attributes --- build/rpmfc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build/rpmfc.c b/build/rpmfc.c index 52f9ebc..248b2f0 100644 --- a/build/rpmfc.c +++ b/build/rpmfc.c @@ -615,12 +615,20 @@ assert(fx < fc->fcdictx->nvals); cx = fc->fcdictx->vals[fx]; assert(fx < fc->fcolor->nvals); fcolor = fc->fcolor->vals[fx]; + ARGV_t fattrs = fc->fattrs[fx]; fprintf(fp, "%3d %s", fx, fc->fn[fx]); if (fcolor != RPMFC_BLACK) fprintf(fp, "\t0x%x", fc->fcolor->vals[fx]); else fprintf(fp, "\t%s", fc->cdict[cx]); + if (fattrs) { + char *attrs = argvJoin(fattrs, ","); + fprintf(fp, " [%s]", attrs); + free(attrs); + } else { + fprintf(fp, " [none]"); + } fprintf(fp, "\n"); if (fc->fddictx == NULL || fc->fddictn == NULL) -- 2.7.4