diff options
Diffstat (limited to 'sim/common/dv-glue.c')
-rw-r--r-- | sim/common/dv-glue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/common/dv-glue.c b/sim/common/dv-glue.c index 560fd70..ab04fe7 100644 --- a/sim/common/dv-glue.c +++ b/sim/common/dv-glue.c @@ -221,7 +221,7 @@ hw_glue_finish (struct hw *me) if (glue->sizeof_output == 0) hw_abort (me, "at least one reg property size must be nonzero"); if (glue->sizeof_output % sizeof (unsigned_word) != 0) - hw_abort (me, "reg property size must be %d aligned", + hw_abort (me, "reg property size must be %ld aligned", sizeof (unsigned_word)); /* and the address */ hw_unit_address_to_attach_address (hw_parent (me), @@ -230,7 +230,7 @@ hw_glue_finish (struct hw *me) &glue->address, me); if (glue->address % (sizeof (unsigned_word) * max_nr_ports) != 0) - hw_abort (me, "reg property address must be %d aligned", + hw_abort (me, "reg property address must be %ld aligned", sizeof (unsigned_word) * max_nr_ports); glue->nr_outputs = glue->sizeof_output / sizeof (unsigned_word); glue->output = hw_zalloc (me, glue->sizeof_output); |