Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752932AbdIFU23 (ORCPT ); Wed, 6 Sep 2017 16:28:29 -0400 Received: from mout.gmx.net ([212.227.15.19]:55967 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752801AbdIFU20 (ORCPT ); Wed, 6 Sep 2017 16:28:26 -0400 From: Helge Deller To: linux-kernel@vger.kernel.org Cc: Sergey Senozhatsky , Petr Mladek , Andrew Morton , x86@kernel.org, Ingo Molnar , Boris Ostrovsky Subject: [PATCH 03/14] x86: Use %pS printk format for symbols from direct addresses Date: Wed, 6 Sep 2017 22:27:50 +0200 Message-Id: <1504729681-3504-4-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:PS9cFNk1ksC9PHXEN/fSDRsFV5LNk/it4E5r0vWdN5Rt9/1GMx+ EWoW5AJrsSemXSpBwAlHcREFX3aN7W+dZ1fWKGP916iQQmTs47JSOYHM3H9k1t/K7Qy0zoT ad0rfIEv19UM6HVuZCaaERR+PFkv2IdJqDo2U3RMMSS+gxKAkVpWP2zJhnGBSUKSFPwiYEY Jit0MInyFb+bfRWAanUgQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:zaIUiuMfB2I=:5HEU0CJlj66kAVN5+QJUjQ 1HQG6dR89AEGsl217R1hLRjvKfr/gB/B1oATssVPKnCRVAXg41yniTPCQmzi6DJQzwAkzhDlg O4FuIyenPS4/89noHPcKwXE17r1d4bymjBDbNG2r5HRGTc5QlmRUcIa32UFjVfJqxFmXmjgNn HXakJHcXLtLHQ9KJcWZoKQjwUWvhbs0M/l8FN/djnrhs5+hG9wusl5+qE8phVvnSo2BF4E/b9 5jf5gA58fcuz52c4RHb2UCPg2x+UH6ZFrsfYN6fqKKZC70Yy0Tar327L9jV+GS2gWeADYHJyy EpXWkjt5CIQ7W/CaXx1TtwF0fdHfzOVkkbexbOqiawRPBVcog0HUyYulVnQ4b4exBXL52MV8Q fBishZzMF2EijNHFSMP1kOa7cXnkvWV7OQ1TwzDhIcXV+CywxKuwOU3F7EZbJG8AS0742i5Dg PK+0IZqv48VNu7l/49H8682eFqhfm0Dn1/RMwBSi/B9o1Z/LJqUZ1W9h0sWuNzWUV0BVoycia HmIyujgwUomhv1gLwfLYMEkJGFRmkD0+doPCCfWyfYIVGMqHDR0uZVko/I+fPb/Jrch/ZsSkF tqXlOYN6S7bMlnl+zU4D3s1rBYsxJU37NHSxw1+B4br01N+jDsAAJvfVzi0UdfC2TsKkQ7Y3A NUu5iynBQ7cgLSOuhiZ6rDbpsggkQ9XG2c4xu8XsjpD+74OPOKbIldin1LGQjHXzCHCXpHjKd r2VxVZE76UH9P3dNmDf6tX3FEi6pJXKy9HGhrR5YNk8cCW43qoytQ/bEuiFGupkDJHB37KpHg qJThScCTYucegE8z11CWOuwrvWBPw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2192 Lines: 51 Use the %pS printk format for printing symbols from direct addresses. On the x86 architecture there is actually no difference between %pS and %pF, but for consistency throughout the kernel fix the wrong usage here too. Signed-off-by: Helge Deller Cc: x86@kernel.org Cc: Ingo Molnar Cc: Boris Ostrovsky Cc: linux-kernel@vger.kernel.org --- arch/x86/mm/extable.c | 4 ++-- arch/x86/xen/multicalls.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/mm/extable.c b/arch/x86/mm/extable.c index c076f71..7137347 100644 --- a/arch/x86/mm/extable.c +++ b/arch/x86/mm/extable.c @@ -91,7 +91,7 @@ EXPORT_SYMBOL(ex_handler_ext); bool ex_handler_rdmsr_unsafe(const struct exception_table_entry *fixup, struct pt_regs *regs, int trapnr) { - if (pr_warn_once("unchecked MSR access error: RDMSR from 0x%x at rIP: 0x%lx (%pF)\n", + if (pr_warn_once("unchecked MSR access error: RDMSR from 0x%x at rIP: 0x%lx (%pS)\n", (unsigned int)regs->cx, regs->ip, (void *)regs->ip)) show_stack_regs(regs); @@ -106,7 +106,7 @@ EXPORT_SYMBOL(ex_handler_rdmsr_unsafe); bool ex_handler_wrmsr_unsafe(const struct exception_table_entry *fixup, struct pt_regs *regs, int trapnr) { - if (pr_warn_once("unchecked MSR access error: WRMSR to 0x%x (tried to write 0x%08x%08x) at rIP: 0x%lx (%pF)\n", + if (pr_warn_once("unchecked MSR access error: WRMSR to 0x%x (tried to write 0x%08x%08x) at rIP: 0x%lx (%pS)\n", (unsigned int)regs->cx, (unsigned int)regs->dx, (unsigned int)regs->ax, regs->ip, (void *)regs->ip)) show_stack_regs(regs); diff --git a/arch/x86/xen/multicalls.c b/arch/x86/xen/multicalls.c index ea54a08..13598f9 100644 --- a/arch/x86/xen/multicalls.c +++ b/arch/x86/xen/multicalls.c @@ -103,7 +103,7 @@ void xen_mc_flush(void) ret, smp_processor_id()); dump_stack(); for (i = 0; i < b->mcidx; i++) { - printk(KERN_DEBUG " call %2d/%d: op=%lu arg=[%lx] result=%ld\t%pF\n", + printk(KERN_DEBUG " call %2d/%d: op=%lu arg=[%lx] result=%ld\t%pS\n", i+1, b->mcidx, b->debug[i].op, b->debug[i].args[0], -- 2.1.0