forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/powerpc/xmon/dis-asm.h
....@@ -1,12 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 #ifndef _POWERPC_XMON_DIS_ASM_H
23 #define _POWERPC_XMON_DIS_ASM_H
34 /*
45 * Copyright (C) 2006 Michael Ellerman, IBM Corporation.
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public License
8
- * as published by the Free Software Foundation; either version
9
- * 2 of the License, or (at your option) any later version.
106 */
117
128 extern void print_address (unsigned long memaddr);
....@@ -17,13 +13,13 @@
1713 #else
1814 static inline int print_insn_powerpc(unsigned long insn, unsigned long memaddr)
1915 {
20
- printf("%.8x", insn);
16
+ printf("%.8lx", insn);
2117 return 0;
2218 }
2319
2420 static inline int print_insn_spu(unsigned long insn, unsigned long memaddr)
2521 {
26
- printf("%.8x", insn);
22
+ printf("%.8lx", insn);
2723 return 0;
2824 }
2925 #endif