forked from Imagelibrary/binutils-gdb
Index: common/ChangeLog
2003-08-28 Andrew Cagney <cagney@redhat.com> * dv-glue.c (hw_glue_finish): Change %d to %ld to match sizeof. * sim-options.c (print_help): Cast the format with specifier to "int". Index: mn10300/ChangeLog 2003-08-28 Andrew Cagney <cagney@redhat.com> * dv-mn103ser.c (do_polling_event): Change type of "serial_reg" to "long". (read_status_reg): Cast "serial_reg" to "long". * dv-mn103tim.c (do_counter_event): Change type of "timer_nr" to "long". (do_counter6_event, write_mode_reg, write_tm6md): Ditto.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user