mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-24 12:39:59 +00:00
* dv-glue.c (hw_glue_finish): Cast result of sizeof to long before
passing it to printf.
This commit is contained in:
parent
4d06b60c7f
commit
7659f80a23
@ -1,3 +1,8 @@
|
||||
2004-05-18 Daniel Jacobowitz <dan@debian.org>
|
||||
|
||||
* dv-glue.c (hw_glue_finish): Cast result of sizeof to long before
|
||||
passing it to printf.
|
||||
|
||||
2004-05-10 Daniel Jacobowitz <dan@debian.org>
|
||||
|
||||
* callback.c: Update copyright dates.
|
||||
|
@ -222,7 +222,7 @@ hw_glue_finish (struct hw *me)
|
||||
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 %ld aligned",
|
||||
sizeof (unsigned_word));
|
||||
(long) sizeof (unsigned_word));
|
||||
/* and the address */
|
||||
hw_unit_address_to_attach_address (hw_parent (me),
|
||||
&unit.address,
|
||||
@ -231,7 +231,7 @@ hw_glue_finish (struct hw *me)
|
||||
me);
|
||||
if (glue->address % (sizeof (unsigned_word) * max_nr_ports) != 0)
|
||||
hw_abort (me, "reg property address must be %ld aligned",
|
||||
sizeof (unsigned_word) * max_nr_ports);
|
||||
(long) (sizeof (unsigned_word) * max_nr_ports));
|
||||
glue->nr_outputs = glue->sizeof_output / sizeof (unsigned_word);
|
||||
glue->output = hw_zalloc (me, glue->sizeof_output);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user