Message ID | 20180316110224.12260-18-malat@debian.org (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org> X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402kgL3Y3Hz9s3C for <patchwork-incoming@ozlabs.org>; Fri, 16 Mar 2018 23:05:34 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="j6INRM5G"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 402kgL1y7XzDqpc for <patchwork-incoming@ozlabs.org>; Fri, 16 Mar 2018 23:05:34 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="j6INRM5G"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2a00:1450:400c:c0c::244; helo=mail-wr0-x244.google.com; envelope-from=mathieu.malaterre@gmail.com; receiver=<UNKNOWN>) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="j6INRM5G"; dkim-atps=neutral Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 402jHB141czDr5S for <linuxppc-dev@lists.ozlabs.org>; Fri, 16 Mar 2018 22:03:02 +1100 (AEDT) Received: by mail-wr0-x244.google.com with SMTP id o1so11246675wro.10 for <linuxppc-dev@lists.ozlabs.org>; Fri, 16 Mar 2018 04:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1by/9IjNbmtnTcX4kPE3vpLsNGAgHfLEmhFkyqsRzFo=; b=j6INRM5Glj41VA5IhtmolFRVyhL76EyYVbRciErIGW1hOZdzkxaIlQoeUfphsgZeSC wrcVYwBE6l3dgz1P4Wjl1F7YwgmmojrQUCvkjOiyzrl8qtnRclq4NGZJAxSKlqHnEjpj huqkJjYtbKhZCC3ISPp3wByJKMhTLZgE2Z9c0dFLM1r0JwqcC7QBxbLtjNgl0OkSJme0 Yn8GYFwHJDYXNMItAryG9Q4XxBwF8i5+Ism7BHFLPrQti3N0A0YE0hfmJfbQ7nGaUn53 KBRcyHmyjaw5+j14pkYF/C+jjhf/82JWCNfr4dM078K7AdmlCHIhc85/Vbip5u0k4yeB /nCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=1by/9IjNbmtnTcX4kPE3vpLsNGAgHfLEmhFkyqsRzFo=; b=Z+98usTowb4MTyczHkxNOPz2ylsf/d4T1Je2BJIYaVDQL60cvaZV8tRYq28Y0T3KSR P09JsWIw3TiqKSxlsQ/bBssLCv867Sfzb6IdeO4xextSu8lV9SY1mx9Kl3PYP5eyLzKS dRUHOfL/mSeH8c/BqPGXqZX/T/jWe2UEqNO5JhFYZs4z0QXlH43OZs29AeJPFpUDXPE0 cdjJQtUIvfdVZ8I07JsUXuMzWrA0Znhne2OJ38n4PVFqvMtCZfX3+KPXjZ2CeS08Cphh qeZWOWg6j8U3hLL8/AIulU9sNMOmvk/9h3vGh00+aIWyC7rOQYvhBa8muDVwy1/0RhdC XhkQ== X-Gm-Message-State: AElRT7Fx2BpeX1JwjL6N1cqxdahqjKHAKsnLpIeNpUgyTdSlf+rBoiWc gbqoNwL6PysvUFeXH4LmNL8= X-Google-Smtp-Source: AG47ELv6j8PhF3ZmyKwiiYlI6W4jFHNiI+3DzIo+8dsCwklXXFoiToMkdHu6UPKBkFZ7tt++ebHqAA== X-Received: by 10.223.130.107 with SMTP id 98mr1192322wrb.16.1521198179472; Fri, 16 Mar 2018 04:02:59 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id 59sm7155534wro.57.2018.03.16.04.02.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 04:02:54 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id EF76D10C06A4; Fri, 16 Mar 2018 12:02:45 +0100 (CET) From: Mathieu Malaterre <malat@debian.org> To: Michael Ellerman <mpe@ellerman.id.au> Subject: [PATCH 17/19] ppc64: change %d into %llu Date: Fri, 16 Mar 2018 12:02:22 +0100 Message-Id: <20180316110224.12260-18-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316110224.12260-1-malat@debian.org> References: <20180316110224.12260-1-malat@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List <linuxppc-dev.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/linuxppc-dev>, <mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/linuxppc-dev/> List-Post: <mailto:linuxppc-dev@lists.ozlabs.org> List-Help: <mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/linuxppc-dev>, <mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe> Cc: Mathieu Malaterre <malat@debian.org>, Paul Mackerras <paulus@samba.org>, linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" <linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org> |
Series |
Start using __printf attribute (single commit series)
|
expand
|
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index c9a44962d3c9..4479245c6361 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -3847,7 +3847,7 @@ static void dump_spu_fields(struct spu *spu) DUMP_FIELD(spu, "0x%lx", ls_size); DUMP_FIELD(spu, "0x%x", node); DUMP_FIELD(spu, "0x%lx", flags); - DUMP_FIELD(spu, "%d", class_0_pending); + DUMP_FIELD(spu, "%llu", class_0_pending); DUMP_FIELD(spu, "0x%llx", class_0_dar); DUMP_FIELD(spu, "0x%llx", class_1_dar); DUMP_FIELD(spu, "0x%llx", class_1_dsisr);
CC arch/powerpc/xmon/xmon.o ../arch/powerpc/xmon/xmon.c: In function ‘dump_spu_fields’: ../arch/powerpc/xmon/xmon.c:3827:10: error: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘u64 {aka long long unsigned int}’ [-Werror=format=] printf(" %-*s = "format"\n", DUMP_WIDTH, \ ^ ../arch/powerpc/xmon/xmon.c:3840:2: note: in expansion of macro ‘DUMP_VALUE’ DUMP_VALUE(format, field, obj->field) ^~~~~~~~~~ ../arch/powerpc/xmon/xmon.c:3853:2: note: in expansion of macro ‘DUMP_FIELD’ DUMP_FIELD(spu, "%d", class_0_pending); ^~~~~~~~~~ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre <malat@debian.org> --- arch/powerpc/xmon/xmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)