| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | #ifndef _POWERPC_XMON_DIS_ASM_H |
|---|
| 2 | 3 | #define _POWERPC_XMON_DIS_ASM_H |
|---|
| 3 | 4 | /* |
|---|
| 4 | 5 | * 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. |
|---|
| 10 | 6 | */ |
|---|
| 11 | 7 | |
|---|
| 12 | 8 | extern void print_address (unsigned long memaddr); |
|---|
| .. | .. |
|---|
| 17 | 13 | #else |
|---|
| 18 | 14 | static inline int print_insn_powerpc(unsigned long insn, unsigned long memaddr) |
|---|
| 19 | 15 | { |
|---|
| 20 | | - printf("%.8x", insn); |
|---|
| 16 | + printf("%.8lx", insn); |
|---|
| 21 | 17 | return 0; |
|---|
| 22 | 18 | } |
|---|
| 23 | 19 | |
|---|
| 24 | 20 | static inline int print_insn_spu(unsigned long insn, unsigned long memaddr) |
|---|
| 25 | 21 | { |
|---|
| 26 | | - printf("%.8x", insn); |
|---|
| 22 | + printf("%.8lx", insn); |
|---|
| 27 | 23 | return 0; |
|---|
| 28 | 24 | } |
|---|
| 29 | 25 | #endif |
|---|