From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752722AbbJBNQ6 (ORCPT ); Fri, 2 Oct 2015 09:16:58 -0400 Received: from mga02.intel.com ([134.134.136.20]:8383 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752068AbbJBNQ5 (ORCPT ); Fri, 2 Oct 2015 09:16:57 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,623,1437462000"; d="scan'208";a="802166616" From: Andy Shevchenko To: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , linux-kernel@vger.kernel.org, x86@kernel.org Cc: Andy Shevchenko Subject: [PATCH, resend 1/1] x86/kernel: re-use %*ph specifier Date: Fri, 2 Oct 2015 16:16:53 +0300 Message-Id: <1443791813-142403-1-git-send-email-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.5.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org %*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 --- 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