printf("\n");
}
- if (p0->irq_name[0] != '\0') { /* Nb of irq per proc may have varied... */
+ /* Calculate column widths */
+ for (j = 0; j < ic_nr; j++) {
+ p0 = st_ic[curr] + j;
- /* normal space for printing a number is 14 chars
- * (space + 10 digits + period + mantissa) */
- if (colwidth[j] < 14)
++ if (p0->irq_name[0] != '\0') {
+ /* Width is IRQ name + 2 for the trailing "/s" */
+ colwidth[j] = strlen(p0->irq_name) + 2;
++ /*
++ * Normal space for printing a number is 14 chars
++ * (space + 10 digits + period + mantissa).
++ */
++ if (colwidth[j] < 14) {
+ colwidth[j] = 10;
++ }
+ }
+ }
+
for (cpu = 1; cpu <= cpu_nr; cpu++) {
scc = st_cpu[curr] + cpu;