Skip to content

Commit 8d0645b

Browse files
hdellergregkh
authored andcommitted
parisc/unaligned: Fix hex output to show 8 hex chars
commit 2132058 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: e5e9e7f ("parisc/unaligned: Enhance user-space visible output") Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b3071bb commit 8d0645b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/parisc/kernel/unaligned.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#define DPRINTF(fmt, args...)
2626
#endif
2727

28-
#define RFMT "%#08lx"
28+
#define RFMT "0x%08lx"
2929

3030
/* 1111 1100 0000 0000 0001 0011 1100 0000 */
3131
#define OPCODE1(a,b,c) ((a)<<26|(b)<<12|(c)<<6)

0 commit comments

Comments
 (0)