From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932119Ab3KXDhc (ORCPT ); Sat, 23 Nov 2013 22:37:32 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:36345 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756259Ab3KXDhb (ORCPT ); Sat, 23 Nov 2013 22:37:31 -0500 From: Santosh Shilimkar To: CC: , Santosh Shilimkar , Marek Szyprowski , Greg Kroah-Hartman Subject: [PATCH] CMA: Fix the phys_addr_t print types Date: Sat, 23 Nov 2013 22:37:01 -0500 Message-ID: <1385264221-29952-1-git-send-email-santosh.shilimkar@ti.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Otherwise prints would truncate the variables on LPAE machines. Cc: Marek Szyprowski Cc: Greg Kroah-Hartman Signed-off-by: Santosh Shilimkar --- drivers/base/dma-contiguous.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/base/dma-contiguous.c b/drivers/base/dma-contiguous.c index 165c2c2..b303a98 100644 --- a/drivers/base/dma-contiguous.c +++ b/drivers/base/dma-contiguous.c @@ -201,9 +201,8 @@ int __init dma_contiguous_reserve_area(phys_addr_t size, phys_addr_t base, phys_addr_t alignment; int ret = 0; - pr_debug("%s(size %lx, base %08lx, limit %08lx)\n", __func__, - (unsigned long)size, (unsigned long)base, - (unsigned long)limit); + pr_info("%s(size %pa, base %pa, limit %pa)\n", __func__, + &size, &base, &limit); /* Sanity checks */ if (cma_area_count == ARRAY_SIZE(cma_areas)) { @@ -250,8 +249,8 @@ int __init dma_contiguous_reserve_area(phys_addr_t size, phys_addr_t base, *res_cma = cma; cma_area_count++; - pr_info("CMA: reserved %ld MiB at %08lx\n", (unsigned long)size / SZ_1M, - (unsigned long)base); + pr_info("CMA: reserved %ld MiB at %pa\n", (unsigned long)size / SZ_1M, + &base); /* Architecture specific contiguous memory fixup. */ dma_contiguous_early_fixup(base, size); -- 1.7.9.5