From patchwork Tue May 22 17:19:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 160694 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 0D1FBB6FA5 for ; Wed, 23 May 2012 03:20:19 +1000 (EST) Received: from localhost ([::1]:55161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWskq-0001rj-Qk for incoming@patchwork.ozlabs.org; Tue, 22 May 2012 13:20:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWskj-0001rA-OC for qemu-devel@nongnu.org; Tue, 22 May 2012 13:20:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWskd-0003bZ-Hh for qemu-devel@nongnu.org; Tue, 22 May 2012 13:20:09 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:49547) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWskd-0003Y4-Ak for qemu-devel@nongnu.org; Tue, 22 May 2012 13:20:03 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1SWskX-000105-F6; Tue, 22 May 2012 18:19:57 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Tue, 22 May 2012 18:19:57 +0100 Message-Id: <1337707197-3822-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 81.2.115.146 Cc: Eric Blake , Paul Brook , patches@linaro.org Subject: [Qemu-devel] [PATCH v2] hw/a9mpcore: Fix compilation failure if physaddrs are 64 bit X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 Reviewed-by: Eric Blake --- v1->v2: cast to unsigned int, not uint32_t. hw/a9mpcore.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/a9mpcore.c b/hw/a9mpcore.c index c2ff74d..ebd5b29 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, (unsigned)offset); return; }