(void) get_ioregistry_value_number (service, CFSTR("sessionID"), kCFNumberSInt64Type, &sessionID);
(void) get_ioregistry_value_number (service, CFSTR("PortNum"), kCFNumberSInt8Type, &port);
- usbi_dbg("finding cached device for sessionID 0x\n" PRIx64, sessionID);
+ usbi_dbg("finding cached device for sessionID 0x%" PRIx64, sessionID);
result = IORegistryEntryGetParentEntry (service, kIOUSBPlane, &parent);
*cached_out = NULL;
list_for_each_entry(new_device, &darwin_cached_devices, list, struct darwin_cached_device) {
- usbi_dbg("matching sessionID 0x%x against cached device with sessionID 0x%x", sessionID, new_device->session);
+ usbi_dbg("matching sessionID 0x%" PRIx64 " against cached device with sessionID 0x%" PRIx64, sessionID, new_device->session);
if (new_device->session == sessionID) {
usbi_dbg("using cached device for device");
*cached_out = new_device;
if (*cached_out)
break;
- usbi_dbg("caching new device with sessionID 0x%x\n", sessionID);
+ usbi_dbg("caching new device with sessionID 0x%" PRIx64, sessionID);
device = darwin_device_from_service (service);
if (!device) {
if (ret)
break;
- usbi_dbg ("allocating new device in context %p for with session 0x%08x",
+ usbi_dbg ("allocating new device in context %p for with session 0x%" PRIx64,
ctx, cached_device->session);
dev = usbi_alloc_device(ctx, (unsigned long) cached_device->session);