Fix Win32 build.
(cherry-pick of 1b600a902cc0b3a6065c962293292a5ac689fafe.) Change-Id: Icf2c8df99b4b88bbf85a4097731733c5795fba44
This commit is contained in:
parent
71aeb79815
commit
2e06d3057e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue