diff options
author | Elliott Hughes <enh@google.com> | 2015-04-29 12:36:06 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-04-29 12:37:33 -0700 |
commit | 2e06d3057e2d4f630b5785008fd586d6256d1827 (patch) | |
tree | fe7d56a8f06a082b31f2974560bf8005bcdc10fa /adb | |
parent | 71aeb798154a515d5f4a91ecb9adb0896ab9a9e6 (diff) | |
download | system_core-2e06d3057e2d4f630b5785008fd586d6256d1827.zip system_core-2e06d3057e2d4f630b5785008fd586d6256d1827.tar.gz system_core-2e06d3057e2d4f630b5785008fd586d6256d1827.tar.bz2 |
Fix Win32 build.
(cherry-pick of 1b600a902cc0b3a6065c962293292a5ac689fafe.)
Change-Id: Icf2c8df99b4b88bbf85a4097731733c5795fba44
Diffstat (limited to 'adb')
-rw-r--r-- | adb/adb_client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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); |