diff options
-rw-r--r-- | adb_client.cpp | 2 |
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); |