summaryrefslogtreecommitdiffstats
path: root/fastboot/usb_osx.c
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2014-08-14 15:50:13 -0700
committerYing Wang <wangying@google.com>2014-08-14 15:52:54 -0700
commit42a809ba0626d089441fcef398297aa44013d53c (patch)
tree75cf7a4e16a502022e70fa0dfc85566c83994e04 /fastboot/usb_osx.c
parentb242ad40b1e0d3984e469e3d35876a4859f4952b (diff)
downloadsystem_core-42a809ba0626d089441fcef398297aa44013d53c.zip
system_core-42a809ba0626d089441fcef398297aa44013d53c.tar.gz
system_core-42a809ba0626d089441fcef398297aa44013d53c.tar.bz2
Fix 64-bit host build.
Bug: 13751317 Change-Id: Ibf62935b7d12a55ffc57242a26a2581b52796847
Diffstat (limited to 'fastboot/usb_osx.c')
-rw-r--r--fastboot/usb_osx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fastboot/usb_osx.c b/fastboot/usb_osx.c
index 0f55e0d..0b6c515 100644
--- a/fastboot/usb_osx.c
+++ b/fastboot/usb_osx.c
@@ -328,7 +328,8 @@ static int try_device(io_service_t device, usb_handle *handle) {
ERR("GetLocationId");
goto error;
}
- snprintf(handle->info.device_path, sizeof(handle->info.device_path), "usb:%lX", locationId);
+ snprintf(handle->info.device_path, sizeof(handle->info.device_path),
+ "usb:%" PRIu32 "X", (unsigned int)locationId);
kr = (*dev)->USBGetSerialNumberStringIndex(dev, &serialIndex);