Skip to contentSkip to conversation

powerpc/xmon: Fix compile error in print_insn* functions

PATCH Applied Sukadev Bhattiprolu 2 participants 2 messages Jan 23, 2020 – Jan 29, 2020 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/xmon: Fix compile error in print_insn* functions

From 72a7497a8673c93a4b80aa4fc38b88a8e90aa650 Mon Sep 17 00:00:00 2001
From: Sukadev Bhattiprolu <[email protected]>
Date: Wed, 22 Jan 2020 18:57:18 -0600
Subject: [PATCH 1/1] 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

---
 arch/powerpc/xmon/dis-asm.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/xmon/dis-asm.h +2 -2
index c4d246ebca37..c4c982d6402e 100644
@@ -13,13 +13,13 @@ extern int print_insn_spu(unsigned long insn, unsigned long memaddr);
 #else
 static inline int print_insn_powerpc(unsigned long insn, unsigned long memaddr)
 {
-	printf("%.8x", insn);
+	printf("%.8lx", insn);
 	return 0;
 }
 
 static inline int print_insn_spu(unsigned long insn, unsigned long memaddr)
 {
-	printf("%.8x", insn);
+	printf("%.8lx", insn);
 	return 0;
 }
 #endif
Signature · 1 line
2.18.1
#1 lore raw
Quoted 9 lines · Sukadev Bhattiprolu
Quoted 1 line

From 72a7497a8673c93a4b80aa4fc38b88a8e90aa650 Mon Sep 17 00:00:00 2001

From: Sukadev Bhattiprolu <[email protected]>
Date: Wed, 22 Jan 2020 18:57:18 -0600
Subject: [PATCH 1/1] 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

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/493a55f1e7724dee5e71bc726d5b819292094587

cheers