From: Mika Westerberg Date: Tue, 10 Apr 2012 12:25:43 +0000 (+0300) Subject: irq_domain: fix formatting of chip data pointer in virq_debug_show() X-Git-Tag: next-20120411~81^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=52107637a0b351f91a969cdc866efec824546753;p=karo-tx-linux.git irq_domain: fix formatting of chip data pointer in virq_debug_show() On 32-bit machines reading the /sys/kernel/debug/irq_domain_mapping file outputs following: virq hwirq chip name chip data domain name 9 0x00000 IO-APIC 0x c175a0f8 none 10 0x00000 IO-APIC 0x c175a108 none 11 0x00000 IO-APIC 0x c175a118 none ... which looks a bit funny. Fix that with filling the gap with zeroes instead of spaces. Signed-off-by: Mika Westerberg Signed-off-by: Grant Likely --- diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index 9310a8d365b0..4bf074aed514 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -667,7 +667,7 @@ static int virq_debug_show(struct seq_file *m, void *private) seq_printf(m, "%-15s ", p); data = irq_desc_get_chip_data(desc); - seq_printf(m, "0x%16p ", data); + seq_printf(m, "0x%016lx ", (unsigned long)data); if (desc->irq_data.domain && desc->irq_data.domain->of_node) p = desc->irq_data.domain->of_node->full_name;