Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753326AbdIFUaC (ORCPT ); Wed, 6 Sep 2017 16:30:02 -0400 Received: from mout.gmx.net ([212.227.15.15]:56718 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752660AbdIFU2p (ORCPT ); Wed, 6 Sep 2017 16:28:45 -0400 From: Helge Deller To: linux-kernel@vger.kernel.org Cc: Sergey Senozhatsky , Petr Mladek , Andrew Morton , linux-mm@kvack.org Subject: [PATCH 12/14] mm/memblock: Use %pS printk format for direct addresses Date: Wed, 6 Sep 2017 22:27:59 +0200 Message-Id: <1504729681-3504-13-git-send-email-deller@gmx.de> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1504729681-3504-1-git-send-email-deller@gmx.de> References: <1504729681-3504-1-git-send-email-deller@gmx.de> X-Provags-ID: V03:K0:9lIwPEwYLMpEPHb/YmhZmQ/tUNBjEENn2uV1axA2oH9wvy1sXPA jbxR7C89ECPdESGIO3iSYO3H2C3+ifi7Kl6PMf68ZkyjDTNS25Fe21uNyMGBG7PN6iGvzT5 ztEcFAPQHkWAiZoiIngK1XZ49u7Y7AVPGVFiRgX/fDx5ceUiABKSHBQedu3hiWYcTe3qv+N mHPKmjbKl68KQTfck/A/w== X-UI-Out-Filterresults: notjunk:1;V01:K0:BS5SiYYB6NA=:hJ/Gqy3mdpDfdyF8aZHbaG YAQRELgi4A3I997WPeoeKPg/50OO1PfvC0+3I8JGb9aLBzZ3ie1EAonjablmGGnKxNh1bDg3H 06Lu7jiv15rNn1iIfIFGHO7YlCJ6kgypfNYzU0j70gl49y1334oBvQvH2btt+N6vstZ8EoZSX m2wl6PDaZ8Tu6gNjEYf3HD+tsvT0gYG2e+x/SU6uLdT21Qe4aZXr0vL8aWcHqIeQApmxQA7FI CR6tIbR+ov0af1I2mVjHLKo6hfA4MNZfpFXoSOIo37Jw+uf3yqBm4sF54AkDOI1uhANy+8O42 PTchwUzqmkL7aKnST5KqeqB6ma6+cCSN48YWjh3d1/sE0fjCtmu5saw2YMd86OEXTbILPSzEO 8BXk0TbCNmqZp1UqMJik4A3Rbz+XGJMzytuAf4rgUTmk33zDepKM/2yj7OIWfjS3gDC3NDQmz rojLDX8nCz1oaEwBPx91U314Ml4emAzpXpLAUleSdEiEwiqSa1125P5DyIH4+aVpqbwdN+Q5K x0i56GmUW5GwA4K8dC8GoVgWWhNro6H2bGE55w22FlefnNgCrrGpRl3K92bQq1bvV48wmYO2O zPKouyx2sHqnpw+gqxRmO1t0rdYGNy1SZwNiNfocCQXrTzvYz5rTTHbQhyxizZUhLLEa926zo 0JaK9Co6wJgF8d+OPSQqCBnEoAW8qpa7l3yzkNtg3zCaYTvzh7l9mO8XGHiZ6rVCYQHxxYXyc clNbFfKNhqRDD6z1D1gGMHwvsIZHT/g/IKZxd2lOtvsY++2RtL6g4TpSOjeWvBwLSAy2E7ssI 2HnNfEtLqyO9Td36HWbqMiZw+wVsA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3184 Lines: 82 The debug code in memblock uses wrongly the %pF instead of the %pS printk format specifier for printing symbols for the address returned by _builtin_return_address(0)/_RET_IP_. Fix it for the ia64, ppc64 and parisc64 architectures. Signed-off-by: Helge Deller Cc: Andrew Morton Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/memblock.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mm/memblock.c b/mm/memblock.c index 9120578..7f1590d 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -597,7 +597,7 @@ int __init_memblock memblock_add(phys_addr_t base, phys_addr_t size) { phys_addr_t end = base + size - 1; - memblock_dbg("memblock_add: [%pa-%pa] %pF\n", + memblock_dbg("memblock_add: [%pa-%pa] %pS\n", &base, &end, (void *)_RET_IP_); return memblock_add_range(&memblock.memory, base, size, MAX_NUMNODES, 0); @@ -704,7 +704,7 @@ int __init_memblock memblock_free(phys_addr_t base, phys_addr_t size) { phys_addr_t end = base + size - 1; - memblock_dbg(" memblock_free: [%pa-%pa] %pF\n", + memblock_dbg(" memblock_free: [%pa-%pa] %pS\n", &base, &end, (void *)_RET_IP_); kmemleak_free_part_phys(base, size); @@ -715,7 +715,7 @@ int __init_memblock memblock_reserve(phys_addr_t base, phys_addr_t size) { phys_addr_t end = base + size - 1; - memblock_dbg("memblock_reserve: [%pa-%pa] %pF\n", + memblock_dbg("memblock_reserve: [%pa-%pa] %pS\n", &base, &end, (void *)_RET_IP_); return memblock_add_range(&memblock.reserved, base, size, MAX_NUMNODES, 0); @@ -1362,7 +1362,7 @@ void * __init memblock_virt_alloc_try_nid_nopanic( phys_addr_t min_addr, phys_addr_t max_addr, int nid) { - memblock_dbg("%s: %llu bytes align=0x%llx nid=%d from=0x%llx max_addr=0x%llx %pF\n", + memblock_dbg("%s: %llu bytes align=0x%llx nid=%d from=0x%llx max_addr=0x%llx %pS\n", __func__, (u64)size, (u64)align, nid, (u64)min_addr, (u64)max_addr, (void *)_RET_IP_); return memblock_virt_alloc_internal(size, align, min_addr, @@ -1394,7 +1394,7 @@ void * __init memblock_virt_alloc_try_nid( { void *ptr; - memblock_dbg("%s: %llu bytes align=0x%llx nid=%d from=0x%llx max_addr=0x%llx %pF\n", + memblock_dbg("%s: %llu bytes align=0x%llx nid=%d from=0x%llx max_addr=0x%llx %pS\n", __func__, (u64)size, (u64)align, nid, (u64)min_addr, (u64)max_addr, (void *)_RET_IP_); ptr = memblock_virt_alloc_internal(size, align, @@ -1418,7 +1418,7 @@ void * __init memblock_virt_alloc_try_nid( */ void __init __memblock_free_early(phys_addr_t base, phys_addr_t size) { - memblock_dbg("%s: [%#016llx-%#016llx] %pF\n", + memblock_dbg("%s: [%#016llx-%#016llx] %pS\n", __func__, (u64)base, (u64)base + size - 1, (void *)_RET_IP_); kmemleak_free_part_phys(base, size); @@ -1438,7 +1438,7 @@ void __init __memblock_free_late(phys_addr_t base, phys_addr_t size) { u64 cursor, end; - memblock_dbg("%s: [%#016llx-%#016llx] %pF\n", + memblock_dbg("%s: [%#016llx-%#016llx] %pS\n", __func__, (u64)base, (u64)base + size - 1, (void *)_RET_IP_); kmemleak_free_part_phys(base, size); -- 2.1.0