diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-04-24 00:16:08 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-04-24 00:18:48 -0400 |
commit | 3886790f133ce1ee2f30ebf37bb7dec1f812f29a (patch) | |
tree | e58608538331f7aac1890b7ec00c1faed979cd82 /sim/common/dv-cfi.c | |
parent | 837b53fd088d13dda77b1d9db73800163692c2e3 (diff) | |
download | fsf-binutils-gdb-3886790f133ce1ee2f30ebf37bb7dec1f812f29a.zip fsf-binutils-gdb-3886790f133ce1ee2f30ebf37bb7dec1f812f29a.tar.gz fsf-binutils-gdb-3886790f133ce1ee2f30ebf37bb7dec1f812f29a.tar.bz2 |
sim: dv-cfi: fix printf format
Use the existing PRI constants to select the right format rather than
assume signed_cell is always %u. Fixes building for riscv64.
Diffstat (limited to 'sim/common/dv-cfi.c')
-rw-r--r-- | sim/common/dv-cfi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/common/dv-cfi.c b/sim/common/dv-cfi.c index afc020a..b865227 100644 --- a/sim/common/dv-cfi.c +++ b/sim/common/dv-cfi.c @@ -610,7 +610,7 @@ attach_cfi_regs (struct hw *me, struct cfi *cfi) if (cfi_cmdsets[i]->id == ival) cfi->cmdset = cfi_cmdsets[i]; if (cfi->cmdset == NULL) - hw_abort (me, "cmdset %u not supported", ival); + hw_abort (me, "cmdset %" PRIiTC " not supported", ival); if (ret == 2) { |