Author: jhibbits
Date: Fri Nov 3 03:13:15 2017
New Revision: 325352
URL: https://svnweb.freebsd.org/changeset/base/325352
Log:
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.
Modified:
head/sys/powerpc/mpc85xx/lbc.c
Modified: head/sys/powerpc/mpc85xx/lbc.c
==============================================================================
--- head/sys/powerpc/mpc85xx/lbc.c Fri Nov 3 01:09:35 2017
(r325351)
+++ head/sys/powerpc/mpc85xx/lbc.c Fri Nov 3 03:13:15 2017
(r325352)
@@ -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);
}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"