From patchwork Wed Jan 7 15:20:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 42829 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 17A382055F for ; Wed, 7 Jan 2015 15:30:23 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id b57sf2716409eek.1 for ; Wed, 07 Jan 2015 07:30:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=hvYi4ZUoU4lsdSpj1RfgUFQcCJfFsDGKD6v8mQKKxf8=; b=hm6S0CsYvmDl/c2TX2UIvS+EBSeqEc/C5woMv4bGIUqMSkv7yxNIw8OfsFY9WEZk8j NsViGMbinEgsmqYilbzQjl6gSAOKUHnrb1VJM3KNh9lHz9BC/i2GeggynTA+whF2YT8J 3TOpB7DOWZ86+s18Qt88K8IkLQhFY9ItCg3ka1GJEh9w5rjFIGFxhqfS+HSLvoleLX0B KWB3qGz1JB37+cUu2kl1ONiNOHU2mZHa/muG60FATMRUqYd+hmHgWuzGncEHV9YeWjB9 +dZTEz21JuOukRktA/+2Bw1OJIp3bmjkYNhuAjwzMaISB1A4nJ+YF/8KA1eXLoBqiJD3 Z48Q== X-Gm-Message-State: ALoCoQkRguEQgDMr2sBEvX/B72xIgCzGTf2OtYC6S+Sv4p8StTZthRC1tdSvgtv4uAKEp2YWtfdz X-Received: by 10.180.98.165 with SMTP id ej5mr3464044wib.1.1420644622250; Wed, 07 Jan 2015 07:30:22 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.205.10 with SMTP id lc10ls189330lac.22.gmail; Wed, 07 Jan 2015 07:30:22 -0800 (PST) X-Received: by 10.152.36.1 with SMTP id m1mr5478460laj.95.1420644622097; Wed, 07 Jan 2015 07:30:22 -0800 (PST) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id j5si3431984laf.99.2015.01.07.07.30.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 Jan 2015 07:30:22 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by mail-la0-f43.google.com with SMTP id s18so4105961lam.2 for ; Wed, 07 Jan 2015 07:30:22 -0800 (PST) X-Received: by 10.152.7.229 with SMTP id m5mr5623854laa.80.1420644622008; Wed, 07 Jan 2015 07:30:22 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.9.200 with SMTP id c8csp1516407lbb; Wed, 7 Jan 2015 07:30:21 -0800 (PST) X-Received: by 10.224.135.193 with SMTP id o1mr5449090qat.97.1420644620701; Wed, 07 Jan 2015 07:30:20 -0800 (PST) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 22si2345718qga.22.2015.01.07.07.30.20 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 07 Jan 2015 07:30:20 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:41213 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8sYt-0005PP-PC for patch@linaro.org; Wed, 07 Jan 2015 10:30:19 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8sPq-0005xE-ED for qemu-devel@nongnu.org; Wed, 07 Jan 2015 10:21:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y8sPk-0003Dg-7a for qemu-devel@nongnu.org; Wed, 07 Jan 2015 10:20:58 -0500 Received: from cantor2.suse.de ([195.135.220.15]:37856 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8sPj-0003B8-Db; Wed, 07 Jan 2015 10:20:51 -0500 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E39D9ADC5; Wed, 7 Jan 2015 15:20:50 +0000 (UTC) From: Alexander Graf To: qemu-ppc@nongnu.org Date: Wed, 7 Jan 2015 16:20:42 +0100 Message-Id: <1420644048-16919-32-git-send-email-agraf@suse.de> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1420644048-16919-1-git-send-email-agraf@suse.de> References: <1420644048-16919-1-git-send-email-agraf@suse.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 195.135.220.15 Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org Subject: [Qemu-devel] [PULL 31/37] target-ppc: Cast ssize_t to size_t before printing with %zx 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: agraf@suse.de X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Peter Maydell The mingw32 compiler complains about trying to print variables of type ssize_t with the %z format string specifier. Since we're printing it as unsigned hex anyway, cast to size_t to silence the warning. Signed-off-by: Peter Maydell Signed-off-by: Alexander Graf --- hw/ppc/spapr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 720aab5..2850624 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -1482,7 +1482,7 @@ static void ppc_spapr_init(MachineState *machine) } if (spapr->rtas_size > RTAS_MAX_SIZE) { hw_error("RTAS too big ! 0x%zx bytes (max is 0x%x)\n", - spapr->rtas_size, RTAS_MAX_SIZE); + (size_t)spapr->rtas_size, RTAS_MAX_SIZE); exit(1); } g_free(filename);