From: Panu Matilainen Date: Thu, 18 Feb 2010 10:26:03 +0000 (+0200) Subject: Add debug output for file attributes X-Git-Tag: tznext/4.11.0.1.tizen20130304~2299 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d94b4f594eafcbb0d4394416ddd82e79de58551;p=tools%2Flibrpm-tizen.git Add debug output for file attributes --- 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)