Improve the dependency loop debug message a bit
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 8 Mar 2011 14:20:20 +0000 (16:20 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 8 Mar 2011 14:20:20 +0000 (16:20 +0200)
- Fix one-off in the SCC numbering
- Fix wording to talk about number of external dependencies, not packages
- Show number of members in the SCC

lib/order.c

index 18fe05c..34ad795 100644 (file)
@@ -351,8 +351,9 @@ static scc detectSCCs(tsortInfo orderInfo, int nelem, int debugloops)
        int msglvl = debugloops ?  RPMLOG_WARNING : RPMLOG_DEBUG;
        rpmlog(msglvl, "%i Strongly Connected Components\n", sd.sccCnt-2);
        for (int i = 2; i < sd.sccCnt; i++) {
-           rpmlog(msglvl, "SCC #%i: requires %i packages\n",
-                  i, SCCs[i].count);
+           rpmlog(msglvl, "SCC #%i: %i members (%i external dependencies)\n",
+                          i-1, SCCs[i].size, SCCs[i].count);
+
            /* loop over members */
            for (int j = 0; j < SCCs[i].size; j++) {
                tsortInfo member = SCCs[i].members[j];