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: 8890 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 E035A23F00 for ; Tue, 22 May 2012 17:20:04 +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 A72FDA19562 for ; Tue, 22 May 2012 17:20:04 +0000 (UTC) Received: by mail-yx0-f180.google.com with SMTP id q6so6894121yen.11 for ; Tue, 22 May 2012 10:20:04 -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=IEUdHILvS3ORqgVCzzoP7S5XFELVAUPtuh9hK+FsFzQ=; b=caAG7CxVOEL7N50ttTyvl9st+ddLRMtgxRTMQXktYPf1t/R6HNPb8//yx79FSj18GS xo0alPMXYUW6aEMuaklIdwOMtQrWuqc/CxI4oaTWfcOUTgg4oofM+Uoos+J0QmU3k8Od TLH3KDANEw9JVSLHNdywWHEYZusRhefpzdkt3QCvtfj4uNWXJwWBufLOPXYwiXjF0bl3 bcjId0RIk8ecNmsXDT1wSX/N8fhxSSsXFXGT/wq9fdJTh/zWrtNaqFbJHteaUO95V2zA mFdSZtNnV0xZw0kgfH5jB/0zw9zv3bbk/D6ub+XliCSUwaoN9qZwWL0aIbx0S5j4432x x7og== Received: by 10.50.87.227 with SMTP id bb3mr10303769igb.57.1337707204279; Tue, 22 May 2012 10:20:04 -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 o8csp381544ibd; Tue, 22 May 2012 10:20:03 -0700 (PDT) Received: by 10.216.150.225 with SMTP id z75mr15651039wej.77.1337707203007; Tue, 22 May 2012 10:20:03 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [81.2.115.146]) by mx.google.com with ESMTPS id ep5si16079717wib.27.2012.05.22.10.20.02 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 May 2012 10:20:02 -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 1SWskX-000105-F6; Tue, 22 May 2012 18:19:57 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Paul Brook , Eric Blake Subject: [PATCH v2] hw/a9mpcore: Fix compilation failure if physaddrs are 64 bit 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-Gm-Message-State: ALoCoQnQ7xqMSs+KNpgNmIQCrm2wnEi7LYHgaJtxqFkb1o8QDQDe6Vh7JalxrFMNuFG33XicRqC0 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; }