From patchwork Tue Apr 29 03:24:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 4084481 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D2445BFF02 for ; Tue, 29 Apr 2014 03:25:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CE80C201E7 for ; Tue, 29 Apr 2014 03:25:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0C8F2201DC for ; Tue, 29 Apr 2014 03:25:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751567AbaD2DZM (ORCPT ); Mon, 28 Apr 2014 23:25:12 -0400 Received: from mail-yk0-f171.google.com ([209.85.160.171]:60924 "EHLO mail-yk0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751460AbaD2DZM (ORCPT ); Mon, 28 Apr 2014 23:25:12 -0400 Received: by mail-yk0-f171.google.com with SMTP id 10so1338978ykt.16 for ; Mon, 28 Apr 2014 20:25:11 -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=dBkNG7cIKZJznL9+UrspBTw0VcLGsxz3UHlG/IBWTyI=; b=W/TCsVoXAkBb5csQm1HyRlVJirCXtVnX8S3Oju1QQexBPKw9SRmNhkrFyYeMH7AQh/ l7UgvjO9MsDkM9qMN9bP0kOv0jCEqzJ+CBiJOriaAFWKSk9MDS2qh7f30EgFBtCqMZXE DNNYB5vQrrMiNT+grsUhJu8ASGW+SBmB9IXZW21StIHzLt0UQKwRI7gL7RHMDLMrdfCw 2gbmtStCFLGGMVjSQrNVwsXisOTES93gengJ7UUu/zMZdZcmmwS5RF0xms9zaWX5AVsa QWCt2nOPZ3V70cUVuUF29TwukDV+D+UkyotREgyj/X2vjmDapMSWLEUgMhzl5cJofuTZ 4gaQ== X-Received: by 10.236.75.162 with SMTP id z22mr43976413yhd.32.1398741911420; Mon, 28 Apr 2014 20:25:11 -0700 (PDT) Received: from localhost.localdomain ([177.194.43.224]) by mx.google.com with ESMTPSA id c27sm34341122yhm.35.2014.04.28.20.25.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 20:25:11 -0700 (PDT) From: Fabio Estevam To: thomas.petazzoni@free-electrons.com Cc: bhelgaas@google.com, linux-pci@vger.kernel.org, jg1.han@samsung.com, Fabio Estevam Subject: [PATCH v2] pci: pci-mvebu: Use '%pa' for printing 'phys_addr_t' type Date: Tue, 29 Apr 2014 00:24:56 -0300 Message-Id: <1398741896-5953-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=unavailable 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=] Fix the warning by using '%pa' to printing 'phys_addr_t' type. While at it, also use the more standard notation [mem 0x - 0x] for memory region. Signed-off-by: Fabio Estevam Reviewed-by: Jingoo Han --- Changes since v1: - use the [mem 0x - 0x] notation 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..df57a6a 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 [mem %pa - %pa] :%d\n", + &base, &base + sz, ret); mvebu_pcie_del_windows(port, base - size_mapped, size_mapped); return;