From patchwork Tue Jul 10 12:34:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 9930 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 689F823E23 for ; Tue, 10 Jul 2012 12:34:47 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id 1D60BA182D3 for ; Tue, 10 Jul 2012 12:34:47 +0000 (UTC) Received: by yenq6 with SMTP id q6so11953450yen.11 for ; Tue, 10 Jul 2012 05:34:46 -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:x-gm-message-state; bh=2sH+yHCY0roZHWgcDmXLhUNbfsOgaNTEzN6EmHgkB3c=; b=phclnW4Zr1lWE7Kr0FDC5E0/LJdV6e1G4kBjZwUWObFIllhXbSmu/adAFc/6sVbF9g 0naEmc3XaFGgJoPYxaEVF/01R7f17ulLZbHrBeSSKyNIb7gHdj1FYwjcMTQaPUaqHG6W /U0m9qIGcnq7tnt/Dl/nJeA9QYvTyEcqFzZH/MGC/PahjfCUy64WPH65uy6rdonbHqzA BVJNiWlWvXMgiGCBV58zOvHIqAqcnQyVM6ENUwjy68B7YkH399GbPtGxLcyDZkrjni5U FJs4Ruc6Wb0AWpL4xRACfApq/Y7YQ/r27BQ7dj9/l6E4GhsFXmrSp6L8kQMTKsNGkHzd krIA== Received: by 10.50.40.193 with SMTP id z1mr11276137igk.0.1341923686349; Tue, 10 Jul 2012 05:34:46 -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.231.24.148 with SMTP id v20csp48638ibb; Tue, 10 Jul 2012 05:34:45 -0700 (PDT) Received: by 10.216.139.17 with SMTP id b17mr11650343wej.8.1341923684980; Tue, 10 Jul 2012 05:34:44 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [81.2.115.146]) by mx.google.com with ESMTPS id fc10si33380505wib.2.2012.07.10.05.34.44 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 Jul 2012 05:34:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) client-ip=81.2.115.146; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1SoZeJ-0007zA-Kr; Tue, 10 Jul 2012 13:34:39 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Peter Chubb Subject: [PATCH] hw/imx_avic.c: Avoid format error when target_phys_addr_t is 64 bits Date: Tue, 10 Jul 2012 13:34:39 +0100 Message-Id: <1341923679-30673-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 X-Gm-Message-State: ALoCoQnnrXnI3r2hX+JgxCvO0CJG3E7slxbY+d8qcvRHdmlv4uLXSac0mlR1r+Lms08jsd9cEUrM Add a missing cast to avoid gcc complaining about format string errors when printing an expression based on a target_phys_addr_t. Signed-off-by: Peter Maydell Reviewed-by: Peter Chubb --- hw/imx_avic.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/imx_avic.c b/hw/imx_avic.c index 25f47f3..4f010e8 100644 --- a/hw/imx_avic.c +++ b/hw/imx_avic.c @@ -267,7 +267,7 @@ static void imx_avic_write(void *opaque, target_phys_addr_t offset, /* Vector Registers not yet supported */ if (offset >= 0x100 && offset <= 0x2fc) { IPRINTF("imx_avic_write to vector register %d ignored\n", - (offset - 0x100) >> 2); + (unsigned int)((offset - 0x100) >> 2)); return; }