From: Mike Frysinger Date: Sat, 24 Apr 2021 04:16:08 +0000 (-0400) Subject: sim: dv-cfi: fix printf format X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3886790f133ce1ee2f30ebf37bb7dec1f812f29a;p=binutils-gdb.git 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. --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index ed4d9f7da65..516e214f011 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2021-04-24 Mike Frysinger + + * dv-cfi.c (attach_cfi_regs): Change %u to PRIiTC. + 2021-04-24 Mike Frysinger * sim-options.c (ARG_HASH_SIZE): Increase to 256. diff --git a/sim/common/dv-cfi.c b/sim/common/dv-cfi.c index afc020a9f4b..b8652271752 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) {