From patchwork Tue May 22 17:04:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 8889 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 AC66723E49 for ; Tue, 22 May 2012 17:04:39 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 72698A185CB for ; Tue, 22 May 2012 17:04:39 +0000 (UTC) Received: by yhpp61 with SMTP id p61so6895090yhp.11 for ; Tue, 22 May 2012 10:04:39 -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=vqWWu7Ee3UFhC9AQuB1PS4GOooH19FHxYd1hJO+PwMQ=; b=cglKqq3RFMijEhNaoglAsaZ5VQ+rSmX3OF+5oUX20UtbBTV3+flUG/ZiW1UQ98Ji1b d8L104QYmq7BFYtHBgjSEPrltqTqnqFdzwiEqaZ8iOqN6A8towxKcocNuLDr/EUL8LUH kIl0FoXyLawmKiIJNiUq8gilAfLxflJwzZdEfPUlsO4fgCLibt39eAKVKsZTH134DHEs Lqi1J8P4SEz0P/gjAESyVzmH75h/xfqbgRW83Bx9N0DVZlQRyoK4lFU5j+DmleHkAMcY uYEfx1EtscU0kvqtvUs7ZM1tu1e2Jox/s4GWgnK7E45KgCP5HH04ACV5mYRgZFGsymMu 0okQ== Received: by 10.50.46.232 with SMTP id y8mr9954229igm.57.1337706278531; Tue, 22 May 2012 10:04:38 -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.35.72 with SMTP id o8csp380717ibd; Tue, 22 May 2012 10:04:37 -0700 (PDT) Received: by 10.216.194.139 with SMTP id m11mr1707452wen.198.1337706277486; Tue, 22 May 2012 10:04:37 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [81.2.115.146]) by mx.google.com with ESMTPS id m21si24970813wee.8.2012.05.22.10.04.36 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 May 2012 10:04:37 -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 1SWsVf-0000yo-3J; Tue, 22 May 2012 18:04:35 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Paul Brook Subject: [PATCH] hw/a9mpcore: Fix compilation failure if physaddrs are 64 bit Date: Tue, 22 May 2012 18:04:35 +0100 Message-Id: <1337706275-3743-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 X-Gm-Message-State: ALoCoQmJWlBycInnVP1NWbAciLCa/ziFwMsWBNi+IW0IvYqBPzg1isT/FxlfI5Awsc1Uffq16N5j Add a cast to a logging printf to avoid a compilation failure if target_phys_addr_t is a 64 bit type. (This is better than using TARGET_FMT_plx because we really don't need a full 16 digit hex string to print the offset into a device.) Signed-off-by: Peter Maydell --- hw/a9mpcore.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/a9mpcore.c b/hw/a9mpcore.c index c2ff74d..98f52f0 100644 --- a/hw/a9mpcore.c +++ b/hw/a9mpcore.c @@ -75,7 +75,7 @@ static void a9_scu_write(void *opaque, target_phys_addr_t offset, break; default: fprintf(stderr, "Invalid size %u in write to a9 scu register %x\n", - size, offset); + size, (uint32_t)offset); return; }