mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH, resend 1/1] x86/kernel: re-use %*ph specifier
@ 2015-10-02 13:16 Andy Shevchenko
  2015-10-11 20:20 ` Thomas Gleixner
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2015-10-02 13:16 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin, linux-kernel, x86
  Cc: Andy Shevchenko

%*ph specifier allows to dump data in hex format using the poiter to a buffer.
This is suitable to use here.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 arch/x86/kernel/jump_label.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/jump_label.c b/arch/x86/kernel/jump_label.c
index e565e0e..8da5254 100644
--- a/arch/x86/kernel/jump_label.c
+++ b/arch/x86/kernel/jump_label.c
@@ -31,8 +31,8 @@ static void bug_at(unsigned char *ip, int line)
 	 * Something went wrong. Crash the box, as something could be
 	 * corrupting the kernel.
 	 */
-	pr_warning("Unexpected op at %pS [%p] (%02x %02x %02x %02x %02x) %s:%d\n",
-	       ip, ip, ip[0], ip[1], ip[2], ip[3], ip[4], __FILE__, line);
+	pr_warn("Unexpected op at %pS [%p] (%5ph) %s:%d\n",
+		ip, ip, ip, __FILE__, line);
 	BUG();
 }
 
-- 
2.5.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-11 20:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-02 13:16 [PATCH, resend 1/1] x86/kernel: re-use %*ph specifier Andy Shevchenko
2015-10-11 20:20 ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®