Commit 493a55f1 authored by Sukadev Bhattiprolu's avatar Sukadev Bhattiprolu Committed by Michael Ellerman

powerpc/xmon: Fix compile error in print_insn* functions

Fix couple of compile errors I stumbled upon with CONFIG_XMON=y and
CONFIG_XMON_DISASSEMBLY=n
Signed-off-by: default avatarSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200123010455.GA15080@us.ibm.com
parent def0bfdb
...@@ -13,13 +13,13 @@ extern int print_insn_spu(unsigned long insn, unsigned long memaddr); ...@@ -13,13 +13,13 @@ extern int print_insn_spu(unsigned long insn, unsigned long memaddr);
#else #else
static inline int print_insn_powerpc(unsigned long insn, unsigned long memaddr) static inline int print_insn_powerpc(unsigned long insn, unsigned long memaddr)
{ {
printf("%.8x", insn); printf("%.8lx", insn);
return 0; return 0;
} }
static inline int print_insn_spu(unsigned long insn, unsigned long memaddr) static inline int print_insn_spu(unsigned long insn, unsigned long memaddr)
{ {
printf("%.8x", insn); printf("%.8lx", insn);
return 0; return 0;
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment