summaryrefslogtreecommitdiff
path: root/arch/parisc
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2025-05-31 15:26:27 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-06-27 11:07:29 +0100
commit81d40ece6b36d92540a5752f9f67a19ac80518ed (patch)
tree7c204c9cb1b819cbb6b5d927503addd56cc67dbc /arch/parisc
parentff0e037241173b574b385bff53d67567b9816db5 (diff)
downloadlinux-81d40ece6b36d92540a5752f9f67a19ac80518ed.tar.gz
linux-81d40ece6b36d92540a5752f9f67a19ac80518ed.tar.bz2
linux-81d40ece6b36d92540a5752f9f67a19ac80518ed.zip
parisc/unaligned: Fix hex output to show 8 hex chars
commit 213205889d5ffc19cb8df06aa6778b2d4724c887 upstream. Change back printk format to 0x%08lx instead of %#08lx, since the latter does not seem to reliably format the value to 8 hex chars. Signed-off-by: Helge Deller <deller@gmx.de> Cc: stable@vger.kernel.org # v5.18+ Fixes: e5e9e7f222e5b ("parisc/unaligned: Enhance user-space visible output") Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/parisc')
-rw-r--r--arch/parisc/kernel/unaligned.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/kernel/unaligned.c b/arch/parisc/kernel/unaligned.c
index 782ee05e2088..71b03db60201 100644
--- a/arch/parisc/kernel/unaligned.c
+++ b/arch/parisc/kernel/unaligned.c
@@ -22,7 +22,7 @@
#define DPRINTF(fmt, args...)
#endif
-#define RFMT "%#08lx"
+#define RFMT "0x%08lx"
/* 1111 1100 0000 0000 0001 0011 1100 0000 */
#define OPCODE1(a,b,c) ((a)<<26|(b)<<12|(c)<<6)