summaryrefslogtreecommitdiff
path: root/adb_client.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-29 12:36:06 -0700
committerElliott Hughes <enh@google.com>2015-04-29 12:36:06 -0700
commit517015b18e9d10338bdeae52612c52fc112a891b (patch)
treeb56046189a546519189ab5781d3d4826761b7ff9 /adb_client.cpp
parent78519d1ab96574ce8cb2b1e6151ad2c96d153efa (diff)
downloadadb-517015b18e9d10338bdeae52612c52fc112a891b.tar.gz
Fix Win32 build.
Change-Id: Icf2c8df99b4b88bbf85a4097731733c5795fba44
Diffstat (limited to 'adb_client.cpp')
-rw-r--r--adb_client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/adb_client.cpp b/adb_client.cpp
index e07c92c..0b2d038 100644
--- a/adb_client.cpp
+++ b/adb_client.cpp
@@ -191,7 +191,7 @@ int _adb_connect(const char *service, std::string* error) {
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);