Received: from eggs.gnu.org ([208.118.235.92]:55097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TItVR-0006jJ-Ix for qemu-devel@nongnu.org; Mon, 01 Oct 2012 23:50:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TItVQ-00007J-9H for qemu-devel@nongnu.org; Mon, 01 Oct 2012 23:50:49 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:40802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TItVP-000070-V0 for qemu-devel@nongnu.org; Mon, 01 Oct 2012 23:50:48 -0400 Received: from eusync1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MB800MG6YP4L920@mailout2.w1.samsung.com> for qemu-devel@nongnu.org; Tue, 02 Oct 2012 04:51:04 +0100 (BST) Received: from evvoevodinPC.rnd.samsung.ru ([106.109.8.9]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MB800IM3YOF6Z10@eusync1.samsung.com> for qemu-devel@nongnu.org; Tue, 02 Oct 2012 04:50:43 +0100 (BST) From: Evgeny Voevodin Date: Tue, 02 Oct 2012 07:50:37 +0400 Message-id: <1349149837-4821-1-git-send-email-e.voevodin@samsung.com> In-reply-to: References: Subject: [Qemu-devel] [PATCH] hw/arm_gic.c: Fix improper DPRINTF output. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, kyungmin.park@samsung.com, e.gorelkina@samsung.com, Evgeny Voevodin , aliguori@us.ibm.com s->cpu_enabled is an array, so s->cpu_enabled ? "En" : "Dis" returns "En" always. We should use s->cpu_enabled[cpu] here. Signed-off-by: Evgeny Voevodin --- hw/arm_gic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm_gic.c b/hw/arm_gic.c index 55871fa..4024dae 100644 --- a/hw/arm_gic.c +++ b/hw/arm_gic.c @@ -566,7 +566,7 @@ static void gic_cpu_write(gic_state *s, int cpu, int offset, uint32_t value) switch (offset) { case 0x00: /* Control */ s->cpu_enabled[cpu] = (value & 1); - DPRINTF("CPU %d %sabled\n", cpu, s->cpu_enabled ? "En" : "Dis"); + DPRINTF("CPU %d %sabled\n", cpu, s->cpu_enabled[cpu] ? "En" : "Dis"); break; case 0x04: /* Priority mask */ s->priority_mask[cpu] = (value & 0xff); -- 1.7.9.5