From patchwork Thu Oct 25 12:57:45 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 12516 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 0CCAA23EFB for ; Thu, 25 Oct 2012 12:57:56 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id B53B7A18FEB for ; Thu, 25 Oct 2012 12:57:55 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id f6so1219548iag.11 for ; Thu, 25 Oct 2012 05:57:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=0P77bcdUOQZB9kpixc3XLwX1PvgLCUc14IV6Tnm3bNU=; b=APoMq6nO9K0fak3Dsi8ChYcHWhndk8sVqMTq3s5kO88X81M7EleJ5k7z7om5UIYnt/ YuNvu2zN1LPPPkekhJh64p/BbSAXVl/IeVZG6arrC3a05/2uTd0K6tblZJI4e+q6ADvx Ke/FqF0BcoYFk/Exm7XkXZK2m30agfuFCFTQfKznZz1gGL5r6/bF+16BOpLmIFljD8yd D91/G90hGRX5Yu+cuL2KX1P/X9hbJ6JL9Jap1ZJc0xBYt1P4DZ4biltFJnD+aPXeDAqG 34ofzMsmEjWNxKByfmUvB8zo7bhdcJHh/sYFi7HN8KIWS4oTohaWmGuCrI3SJIy1jo9J 84hw== Received: by 10.50.161.169 with SMTP id xt9mr4202547igb.62.1351169875532; Thu, 25 Oct 2012 05:57:55 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp42947igt; Thu, 25 Oct 2012 05:57:54 -0700 (PDT) Received: by 10.216.218.161 with SMTP id k33mr10473876wep.99.1351169874107; Thu, 25 Oct 2012 05:57:54 -0700 (PDT) Received: from mnementh.archaic.org.uk (1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id ep10si1134531wid.46.2012.10.25.05.57.53 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Oct 2012 05:57:54 -0700 (PDT) Received-SPF: neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) client-ip=2001:8b0:1d0::1; Authentication-Results: mx.google.com; spf=neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1TRN0N-0001Qv-VU; Thu, 25 Oct 2012 13:57:47 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org Subject: [PATCH 10/12] hw/arm_sysctl: Use LOG_GUEST_ERROR Date: Thu, 25 Oct 2012 13:57:45 +0100 Message-Id: <1351169867-5466-11-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1351169867-5466-1-git-send-email-peter.maydell@linaro.org> References: <1351169867-5466-1-git-send-email-peter.maydell@linaro.org> X-Gm-Message-State: ALoCoQn04m6s7bCglhYAIGWFaDMZVD1fCO04jwLSYmoQlZTw9kibuXbzB8ej21dCKVpGsO0/PyTy Use LOG_GUEST_ERROR to report bad guest accesses. Signed-off-by: Peter Maydell --- hw/arm_sysctl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hw/arm_sysctl.c b/hw/arm_sysctl.c index 26318e1..58eb982 100644 --- a/hw/arm_sysctl.c +++ b/hw/arm_sysctl.c @@ -184,7 +184,9 @@ static uint64_t arm_sysctl_read(void *opaque, hwaddr offset, return s->sys_cfgstat; default: bad_reg: - printf ("arm_sysctl_read: Bad register offset 0x%x\n", (int)offset); + qemu_log_mask(LOG_GUEST_ERROR, + "arm_sysctl_read: Bad register offset 0x%x\n", + (int)offset); return 0; } } @@ -339,7 +341,9 @@ static void arm_sysctl_write(void *opaque, hwaddr offset, return; default: bad_reg: - printf ("arm_sysctl_write: Bad register offset 0x%x\n", (int)offset); + qemu_log_mask(LOG_GUEST_ERROR, + "arm_sysctl_write: Bad register offset 0x%x\n", + (int)offset); return; } }