s390/jump_label: Use %*ph to print small buffers
printk() supports %*ph format specifier for printing a small buffers, let's use it intead of %02x %02x... Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
1d3f9094c6
commit
e4ec735108
@ -44,12 +44,9 @@ static void jump_label_bug(struct jump_entry *entry, struct insn *expected,
|
|||||||
unsigned char *ipn = (unsigned char *)new;
|
unsigned char *ipn = (unsigned char *)new;
|
||||||
|
|
||||||
pr_emerg("Jump label code mismatch at %pS [%p]\n", ipc, ipc);
|
pr_emerg("Jump label code mismatch at %pS [%p]\n", ipc, ipc);
|
||||||
pr_emerg("Found: %02x %02x %02x %02x %02x %02x\n",
|
pr_emerg("Found: %6ph\n", ipc);
|
||||||
ipc[0], ipc[1], ipc[2], ipc[3], ipc[4], ipc[5]);
|
pr_emerg("Expected: %6ph\n", ipe);
|
||||||
pr_emerg("Expected: %02x %02x %02x %02x %02x %02x\n",
|
pr_emerg("New: %6ph\n", ipn);
|
||||||
ipe[0], ipe[1], ipe[2], ipe[3], ipe[4], ipe[5]);
|
|
||||||
pr_emerg("New: %02x %02x %02x %02x %02x %02x\n",
|
|
||||||
ipn[0], ipn[1], ipn[2], ipn[3], ipn[4], ipn[5]);
|
|
||||||
panic("Corrupted kernel text");
|
panic("Corrupted kernel text");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user