forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2021-04-24 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* dv-cfi.c (attach_cfi_regs): Change %u to PRIiTC.
|
||||
|
||||
2021-04-24 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* sim-options.c (ARG_HASH_SIZE): Increase to 256.
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user