Fix Win32 build.
(cherry-pick of 1b600a902cc0b3a6065c962293292a5ac689fafe.)
Change-Id: Icf2c8df99b4b88bbf85a4097731733c5795fba44
diff --git a/adb/adb_client.cpp b/adb/adb_client.cpp
index e07c92c..0b2d038 100644
--- a/adb/adb_client.cpp
+++ b/adb/adb_client.cpp
@@ -191,7 +191,7 @@
D("_adb_connect: %s\n", service);
size_t len = strlen(service);
if ((len < 1) || (len > 1024)) {
- *error = android::base::StringPrintf("service name too long (%zd)", len);
+ *error = android::base::StringPrintf("service name too long (%d)", static_cast<int>(len));
return -1;
}
snprintf(tmp, sizeof tmp, "%04zx", len);