summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2013-03-05 10:27:41 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-03-05 10:27:41 -0800
commit79d4381a8e838d7ddbeda5b7dc90e0c5bca5a8c6 (patch)
treeb1a22fe7fc1e213f4966d72b5281edd23997b04d
parentaf4ececc7bd10aec1240acfbfe7756ab8ee16883 (diff)
parent69f3ec84cf4e9a1bf4c222b88b4413da407331b5 (diff)
downloadsystem_core-79d4381a8e838d7ddbeda5b7dc90e0c5bca5a8c6.zip
system_core-79d4381a8e838d7ddbeda5b7dc90e0c5bca5a8c6.tar.gz
system_core-79d4381a8e838d7ddbeda5b7dc90e0c5bca5a8c6.tar.bz2
am 69f3ec84: Merge "Fix issues where the filename is referred to as \'sideload\'"
* commit '69f3ec84cf4e9a1bf4c222b88b4413da407331b5': Fix issues where the filename is referred to as 'sideload'
-rw-r--r--adb/commandline.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/adb/commandline.c b/adb/commandline.c
index cbe4616..a927423 100644
--- a/adb/commandline.c
+++ b/adb/commandline.c
@@ -383,7 +383,7 @@ static void format_host_command(char* buffer, size_t buflen, const char* comman
}
}
-int adb_download_buffer(const char *service, const void* data, int sz,
+int adb_download_buffer(const char *service, const char *fn, const void* data, int sz,
unsigned progress)
{
char buf[4096];
@@ -419,7 +419,7 @@ int adb_download_buffer(const char *service, const void* data, int sz,
sz -= xfer;
ptr += xfer;
if(progress) {
- printf("sending: '%s' %4d%% \r", service, (int)(100LL - ((100LL * sz) / (total))));
+ printf("sending: '%s' %4d%% \r", fn, (int)(100LL - ((100LL * sz) / (total))));
fflush(stdout);
}
}
@@ -451,11 +451,11 @@ int adb_download(const char *service, const char *fn, unsigned progress)
data = load_file(fn, &sz);
if(data == 0) {
- fprintf(stderr,"* cannot read '%s' *\n", service);
+ fprintf(stderr,"* cannot read '%s' *\n", fn);
return -1;
}
- int status = adb_download_buffer(service, data, sz, progress);
+ int status = adb_download_buffer(service, fn, data, sz, progress);
free(data);
return status;
}