Fix integer type and format in debug print

gcc complains "cast to pointer from integer of different size".  phandle_t is
*always* a uint32_t, so treat it as such, not as a pointer.  Fixes 64-bit build.
This commit is contained in:
Justin Hibbits 2017-11-03 03:13:15 +00:00
parent 40a54c51c9
commit 8c6037c4f8

View File

@ -651,8 +651,8 @@ lbc_attach(device_t dev)
free(di, M_LBC);
continue;
}
debugf("added child name='%s', node=%p\n", di->di_ofw.obd_name,
(void *)child);
debugf("added child name='%s', node=%x\n", di->di_ofw.obd_name,
child);
device_set_ivars(cdev, di);
}