From patchwork Mon Apr 28 10:51:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 4076401 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6F9F59F271 for ; Mon, 28 Apr 2014 10:51:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8A9892021B for ; Mon, 28 Apr 2014 10:51:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A401D201DD for ; Mon, 28 Apr 2014 10:51:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755192AbaD1Kvh (ORCPT ); Mon, 28 Apr 2014 06:51:37 -0400 Received: from mail-yk0-f176.google.com ([209.85.160.176]:53241 "EHLO mail-yk0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755190AbaD1Kvg (ORCPT ); Mon, 28 Apr 2014 06:51:36 -0400 Received: by mail-yk0-f176.google.com with SMTP id 19so5485190ykq.21 for ; Mon, 28 Apr 2014 03:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=5ibNRZ0A0yl9tqXWMxluZiY6BEGA+/Xfjol5YpQGXqs=; b=wbZiNdkNkA2/OLPxc1fm3eZo3q6EAfHsDjdskwBmNFlXjumvkMEEpNI1NbWl1T06zo w95GEbwQnxJN56Dzw42luj7/SKe5pBVVAF5HnZrNXhVLdKVQxrWzLWTnRBQGQ0bHi7lg J5FMOhZzh97AqK9k0ALjvR1ii9hL+955G9LEptG9cSGJVMn6IxJbUImo7lbuNIVLpPAj tESnya5tjBygfA5ILZ62HAWopGqxPf6nQzTD//TSMsmE+wopf3MbV7sjkqMFsX4Rhmdg Pv17LwuBFv7XudRGJNyHYiEZZVGBDCkqN2cYZRNxg2VqTsa+yZdIEnDbaZcOaAWoMZ1W aQrQ== X-Received: by 10.236.135.104 with SMTP id t68mr37278549yhi.35.1398682295761; Mon, 28 Apr 2014 03:51:35 -0700 (PDT) Received: from localhost.localdomain ([189.101.180.106]) by mx.google.com with ESMTPSA id c27sm29824958yhm.35.2014.04.28.03.51.34 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 03:51:35 -0700 (PDT) From: Fabio Estevam To: thomas.petazzoni@free-electrons.com Cc: bhelgaas@google.com, linux-pci@vger.kernel.org, Fabio Estevam Subject: [PATCH] pci: pci-mvebu: Use '%pa' for printing 'phys_addr_t' type Date: Mon, 28 Apr 2014 07:51:21 -0300 Message-Id: <1398682281-18772-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.8.3.2 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam Fix the following build warning that happens when building multi_v7_defconfig with CONFIG_ARM_LPAE=y: drivers/pci/host/pci-mvebu.c:334:5: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'phys_addr_t' [-Wformat=] While at it, also use '%zx' for printing 'size_t'. Reported-by: Olof's autobuilder Signed-off-by: Fabio Estevam Reviewed-by: Jingoo Han --- drivers/pci/host/pci-mvebu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c index e384e25..572a7b5 100644 --- a/drivers/pci/host/pci-mvebu.c +++ b/drivers/pci/host/pci-mvebu.c @@ -330,8 +330,8 @@ static void mvebu_pcie_add_windows(struct mvebu_pcie_port *port, sz, remap); if (ret) { dev_err(&port->pcie->pdev->dev, - "Could not create MBus window at 0x%x, size 0x%x: %d\n", - base, sz, ret); + "Could not create MBus window at %pa, size 0x%zx: %d\n", + &base, sz, ret); mvebu_pcie_del_windows(port, base - size_mapped, size_mapped); return;