Mercurial > hg > dmlib
diff tools/xm2jss.c @ 1352:0ecd5accea1e
Improve verbose output cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 22 Aug 2017 23:02:24 +0300 |
parents | c9b5b4713b57 |
children | ed04fb6da07c |
line wrap: on
line diff
--- a/tools/xm2jss.c Tue Aug 22 22:48:16 2017 +0300 +++ b/tools/xm2jss.c Tue Aug 22 23:02:24 2017 +0300 @@ -1126,14 +1126,19 @@ // Remap orders list // dmMsg(1, "Remapping orders list.\n"); + nunused = 0; for (int i = 0; i < m->norders; i++) { int map = mapPatterns[m->orderList[i]]; if (map != m->orderList[i]) - dmPrint(2, "%02x -> %02x : ", m->orderList[i], map); + { + dmPrint(2, "%02x -> %02x : ", m->orderList[i], map); + nunused++; + } r->orderList[i] = map; } - dmPrint(2, "\n"); + if (nunused) + dmPrint(2, "\n"); return r; }