aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Remus <jremus@linux.ibm.com>2025-05-07 17:17:10 +0200
committerJens Remus <jremus@linux.ibm.com>2025-05-07 17:17:10 +0200
commitbc1b43ef7ad7c9969e4518c3710568b0206b70fa (patch)
tree35a1530fa98322813389a7ae6e66d9e6dd99eee9
parent7659033deeb4f2ae47f4b6d9ad1a45b2d314ed26 (diff)
downloadbinutils-bc1b43ef7ad7c9969e4518c3710568b0206b70fa.zip
binutils-bc1b43ef7ad7c9969e4518c3710568b0206b70fa.tar.gz
binutils-bc1b43ef7ad7c9969e4518c3710568b0206b70fa.tar.bz2
s390: Fix format specifier for VR in disassembler
Vector register (VR) numbers are unsigned. Use format specifier %u instead of %i. Reported-by: Florian Krohm <flo2030@eich-krohm.de> Signed-off-by: Jens Remus <jremus@linux.ibm.com>
-rw-r--r--opcodes/s390-dis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/s390-dis.c b/opcodes/s390-dis.c
index 9838365..0d32d05 100644
--- a/opcodes/s390-dis.c
+++ b/opcodes/s390-dis.c
@@ -312,7 +312,7 @@ s390_print_insn_with_opcode (bfd_vma memaddr,
info->fprintf_styled_func (info->stream, dis_style_text,
"%c", separator);
info->fprintf_styled_func (info->stream, dis_style_register,
- "%%v%i", val.u);
+ "%%v%u", val.u);
}
else if (flags & S390_OPERAND_AR)
{