Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200123010455.GA15080@us.ibm.com

authored by

Sukadev Bhattiprolu and committed by
Michael Ellerman
493a55f1 def0bfdb

+2 -2
+2 -2
arch/powerpc/xmon/dis-asm.h
··· 13 13 #else 14 14 static inline int print_insn_powerpc(unsigned long insn, unsigned long memaddr) 15 15 { 16 - printf("%.8x", insn); 16 + printf("%.8lx", insn); 17 17 return 0; 18 18 } 19 19 20 20 static inline int print_insn_spu(unsigned long insn, unsigned long memaddr) 21 21 { 22 - printf("%.8x", insn); 22 + printf("%.8lx", insn); 23 23 return 0; 24 24 } 25 25 #endif