From patchwork Thu Oct 25 12:57:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 12517 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 7073323EFB for ; Thu, 25 Oct 2012 12:57:56 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 1BB59A18FEF for ; Thu, 25 Oct 2012 12:57:56 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so2060863iej.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=s3AZZkF9M2avqUBgnK/F8X6aAkOJvuXzGAViqalC4hE=; b=XayERGeTa6Vz8gsyaVqPO2RxhoYsMScROQl+HaqIzWwGbgR9RkU2F+3rT8hZmYarwB 71QxN5qslL7+rJdR+py49TkQKCXIAwxgni2sBB3CcQehRtT9k7yeWtPz1q1hpO09D1TV +j8omzm/FzlaIvXQdcXTf67yKhiCbZBIMjep6ulQ7ZxjIkwkzqYJwB34kA+tYkenlHrA u6mNoTQFyhvldtLfJIcoCwOzBV2zrhdDErjJybqYjHkiBCDB+tdYE3cnBY0N498+tphz h+C0EgfI1uvwoOhPw9E4NLWF8e15hrHu/ZngiYqnZmj8cakKS6FoXCIz1u4TRTwqzhun XgXQ== Received: by 10.50.88.233 with SMTP id bj9mr5673860igb.70.1351169875875; 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 n20csp42945igt; Thu, 25 Oct 2012 05:57:54 -0700 (PDT) Received: by 10.216.140.205 with SMTP id e55mr11014632wej.2.1351169873913; Thu, 25 Oct 2012 05:57:53 -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 g54si3179953wep.145.2012.10.25.05.57.53 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Oct 2012 05:57:53 -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 1TRN0O-0001Qx-0Y; Thu, 25 Oct 2012 13:57:48 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org Subject: [PATCH 11/12] hw/arm_l2x0: Use LOG_GUEST_ERROR Date: Thu, 25 Oct 2012 13:57:46 +0100 Message-Id: <1351169867-5466-12-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: ALoCoQljifI8JJnLlBkCo5vLqeMzArMS/hytCI8JNGwxq4CC/aDU/jLA6NKet9VcwRmO8OXkVyVi Use LOG_GUEST_ERROR to report bad guest accesses. Signed-off-by: Peter Maydell --- hw/arm_l2x0.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/arm_l2x0.c b/hw/arm_l2x0.c index 8f5921c..6abf0ee 100644 --- a/hw/arm_l2x0.c +++ b/hw/arm_l2x0.c @@ -87,7 +87,8 @@ static uint64_t l2x0_priv_read(void *opaque, hwaddr offset, case 0xF80: return 0; default: - fprintf(stderr, "l2x0_priv_read: Bad offset %x\n", (int)offset); + qemu_log_mask(LOG_GUEST_ERROR, + "l2x0_priv_read: Bad offset %x\n", (int)offset); break; } return 0; @@ -128,7 +129,8 @@ static void l2x0_priv_write(void *opaque, hwaddr offset, case 0xF80: return; default: - fprintf(stderr, "l2x0_priv_write: Bad offset %x\n", (int)offset); + qemu_log_mask(LOG_GUEST_ERROR, + "l2x0_priv_write: Bad offset %x\n", (int)offset); break; } }