[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 27/27] i8259_common.c: add missing 0x prefixes to "info pic" output


  • To: pbonzini@xxxxxxxxxx, richard.henderson@xxxxxxxxxx, mst@xxxxxxxxxx, sstabellini@xxxxxxxxxx, anthony@xxxxxxxxxxxxxx, edgar.iglesias@xxxxxxxxx, qemu-devel@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Mark Cave-Ayland <mark.caveayland@xxxxxxxxxxx>
  • Date: Fri, 16 Oct 2026 15:19:33 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nutanix.com; dmarc=pass action=none header.from=nutanix.com; dkim=pass header.d=nutanix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SZiLewJ31Wd7JJfgU0jxATyKUq9AnyFgswSLPaZDyF0=; b=o36nG7aSfMKv3U0ayxnLRCurwYs3C1OgVmZv5MUoZ04PilzzQAzxZa56/dHdRtbI2AOPUgvvGDbzbtcKDEylakQfvTONaU/tc3DkSqz10x0j1vYzzp7Fmg45lztBnbKUFaf9wg3P1760zpZ6F/AdJa+UGICnYonE18nFHPRdN+kih/6o1LS/Aw2L1TpzhkOjSC8VsL/MFiJ3QpCSDOkH404jwCiDsenGc6BPjgwEUW6REdhaOVsZvzLjwLdybmWbLh7duCwa83d5Qh2rxY8eF8xRgQaOQqrLOdoUjiPoV650OKreg+aWT13DbazxjB9jWNEuX08onmZRqKOgZNPZXA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KDmQFU+jWLuGzDPNr5gN9ie3gVpdRgnyRHRuF+4UNXkN+IP5OSHmFR+5fTYafYio8JI69JEMq3FRDvXETKwRA+r8E7bN5YCVzbATbebQSW257CTmeAtW67wHm3p/kx7EJy5ol1JlVo/Fr21/DsWsKGfvvOYLk11xzejVHbHpI7MuJ7PmcYaaOED1HkBWMK+7kr45NnTRHRMsf0A3clHjXduUaRtfC4MYn9Rt78MA/UmT1S4cCPm2n0sj4LGhRHK7kcjOk37w1rxSxb8t9+zKtvugvC0GZ4JT6doF5xyfKvbF6CwQtneYM+2KAhoHFCP3jwr2619YEdn77AWaaJWzYw==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=proofpoint20171006 header.d=nutanix.com header.i="@nutanix.com" header.h="Content-Transfer-Encoding:Content-Type:Date:From:In-Reply-To:Message-ID:MIME-Version:References:Subject:To"; dkim=pass header.s=selector1 header.d=nutanix.com header.i="@nutanix.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
  • Authentication-results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nutanix.com;
  • Delivery-date: Fri, 16 Oct 2026 14:23:04 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

This indicates that the specified register values are being output in hex.

Signed-off-by: Mark Cave-Ayland <mark.caveayland@xxxxxxxxxxx>
Reviewed-by: Peter Maydell <peter.maydell@xxxxxxxxxx>
---
 hw/intc/i8259_common.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/hw/intc/i8259_common.c b/hw/intc/i8259_common.c
index 3bafd81ea7..ee325a659a 100644
--- a/hw/intc/i8259_common.c
+++ b/hw/intc/i8259_common.c
@@ -119,8 +119,9 @@ static void i8259_common_print_info(InterruptStatsProvider 
*obj, GString *buf)
     I8259CommonState *cs = I8259_COMMON(obj);
 
     i8259_common_dispatch_pre_save(cs);
-    g_string_append_printf(buf, "pic%d: irr=%02x imr=%02x isr=%02x hprio=%d "
-                           "irq_base=%02x rr_sel=%d elcr=%02x fnm=%d\n",
+    g_string_append_printf(buf,
+                           "pic%d: irr=0x%02x imr=0x%02x isr=0x%02x hprio=%d "
+                           "irq_base=0x%02x rr_sel=%d elcr=0x%02x fnm=%d\n",
                            cs->master ? 0 : 1, cs->irr, cs->imr, cs->isr,
                            cs->priority_add,
                            cs->irq_base, cs->read_reg_select, cs->elcr,
-- 
2.43.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.