This patch fixes the irq_domain_mapping debugfs output to pad pointer values with leading zeros so that pointer values are displayed correctly. Otherwise you get output similar to "0x 5e0000000000000". Also, when the irq_domain is set to 'null'
Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -643,8 +643,8 @@ static int virq_debug_show(struct seq_file *m, void *private) · 642 unmodified lines | ||
| 643 | 643 | void *data; |
| 644 | 644 | int i; |
| 645 | 645 | |
| 646 | − seq_printf(m, "%-5s %-7s %-15s %-18s %s\n", "virq", "hwirq", | |
| 647 | − "chip name", "chip data", "domain name"); | |
| 646 | + seq_printf(m, "%-5s %-7s %-15s %-*s %s\n", "irq", "hwirq", | |
| 647 | + "chip name", 2 * sizeof(void *) + 2, "chip data", "domain name"); | |
| 648 | 648 | |
| 649 | 649 | for (i = 1; i < nr_irqs; i++) { |
| 650 | 650 | desc = irq_to_desc(i); |
| @@ -667,7 +667,7 @@ static int virq_debug_show(struct seq_file *m, void *private) · 16 unmodified lines | ||
| 667 | 667 | seq_printf(m, "%-15s ", p); |
| 668 | 668 | |
| 669 | 669 | data = irq_desc_get_chip_data(desc); |
| 670 | − seq_printf(m, "0x%16p ", data); | |
| 670 | + seq_printf(m, data ? "0x%p " : " %p ", data); | |
| 671 | 671 | |
| 672 | 672 | if (desc->irq_data.domain && desc->irq_data.domain->of_node) |
| 673 | 673 | p = desc->irq_data.domain->of_node->full_name; |