fix cross-build host amd64, target ppc

This commit is contained in:
christos 2023-08-14 22:42:02 +00:00
parent 37060aa12c
commit 1da411237a
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ hw_sem_init_data(device *me)
error("sem_init_data() required value property is missing\n"); error("sem_init_data() required value property is missing\n");
sem->key = (key_t) device_find_integer_property(me, "key"); sem->key = (key_t) device_find_integer_property(me, "key");
DTRACE(sem, ("semaphore key (%d)\n", sem->key) ); DTRACE(sem, ("semaphore key (%jd)\n", (intmax_t)sem->key) );
sem->initial = (int) device_find_integer_property(me, "value"); sem->initial = (int) device_find_integer_property(me, "value");
DTRACE(sem, ("semaphore initial value (%d)\n", sem->initial) ); DTRACE(sem, ("semaphore initial value (%d)\n", sem->initial) );

View File

@ -97,7 +97,7 @@ hw_shm_init_data(device *me)
error("shm_init_data() required key property is missing\n"); error("shm_init_data() required key property is missing\n");
shm->key = (key_t) device_find_integer_property(me, "key"); shm->key = (key_t) device_find_integer_property(me, "key");
DTRACE(shm, ("shm key (0x%08x)\n", shm->key) ); DTRACE(shm, ("shm key (0x%08jx)\n", (intmax_t)shm->key) );
/* Figure out where this memory is in address space and how long it is */ /* Figure out where this memory is in address space and how long it is */
if ( !device_find_reg_array_property(me, "reg", 0, &reg) ) if ( !device_find_reg_array_property(me, "reg", 0, &reg) )