From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: IO-APIC: tweak debug key info formatting Date: Fri, 3 Feb 2012 13:30:37 +0000 Message-ID: <4F2BE17D.2010207@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000509050901020101050202" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" Cc: Keir Fraser , Jan Beulich List-Id: xen-devel@lists.xenproject.org --------------000509050901020101050202 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit The formatting of the IO-APIC debug key info has niggled me for a while, and with the latest interrupt bug I am chasing, has finally motivated me to fix it. The attached patch causes all columns to line up, and removes the comma which served no purpose in combination with the spaces already present. -- Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900, http://www.citrix.com --------------000509050901020101050202 Content-Type: text/x-patch; name="dump_ioapic_irq_info_format.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="dump_ioapic_irq_info_format.patch" # HG changeset patch # Parent e2722b24dc0962de37215320b05d1bb7c4c42864 Change io_apic debug information format to align columns Having the columns aligned makes for much easier reading. Also remove the commas which only add to visual clutter in combination with spaces. Furthermore, printing fewer characters makes it less likely that the serial buffer will overflow resulting in loss of critical debugging information. Signed-off-by: Andrew Cooper diff -r e2722b24dc09 xen/arch/x86/io_apic.c --- a/xen/arch/x86/io_apic.c +++ b/xen/arch/x86/io_apic.c @@ -2406,13 +2406,13 @@ void dump_ioapic_irq_info(void) *(((int *)&rte) + 1) = io_apic_read(entry->apic, 0x11 + 2 * pin); spin_unlock_irqrestore(&ioapic_lock, flags); - printk("vector=%u, delivery_mode=%u, dest_mode=%s, " - "delivery_status=%d, polarity=%d, irr=%d, " - "trigger=%s, mask=%d, dest_id:%d\n", + printk("vector=%3u delivery_mode=%u dest_mode=%s " + "delivery_status=%d polarity=%d irr=%d " + "trigger=%s mask=%d dest_id:%d\n", rte.vector, rte.delivery_mode, - rte.dest_mode ? "logical" : "physical", + rte.dest_mode ? "logical " : "physical", rte.delivery_status, rte.polarity, rte.irr, - rte.trigger ? "level" : "edge", rte.mask, + rte.trigger ? "level" : "edge ", rte.mask, rte.dest.logical.logical_dest); if ( entry->next == 0 ) --------------000509050901020101050202 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------000509050901020101050202--