summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-12-14 23:07:32 -0800
committerMike Lockwood <lockwood@android.com>2011-02-03 15:26:35 -0500
commit487009ef5e723729d51b937d6844b8d12fb974a3 (patch)
tree7850b97a83576e0874a86164b1a5eb57c846f74d
parent1d3fbed34897e36ed0b55c68fe6b0a7f2dd2ec8e (diff)
downloadsystem_core-487009ef5e723729d51b937d6844b8d12fb974a3.zip
system_core-487009ef5e723729d51b937d6844b8d12fb974a3.tar.gz
system_core-487009ef5e723729d51b937d6844b8d12fb974a3.tar.bz2
adb: Don't report negative number of bytes after pushing file > 2 gigabytes
BUG: 3198322 Change-Id: I6067857b9490984a21b597f6ee338446a9decaf5 Signed-off-by: Mike Lockwood <lockwood@android.com>
-rw-r--r--adb/file_sync_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/adb/file_sync_client.c b/adb/file_sync_client.c
index da25ae8..5c7a26f 100644
--- a/adb/file_sync_client.c
+++ b/adb/file_sync_client.c
@@ -57,9 +57,9 @@ static void END()
if (t == 0) /* prevent division by 0 :-) */
t = 1000000;
- fprintf(stderr,"%lld KB/s (%d bytes in %lld.%03llds)\n",
+ fprintf(stderr,"%lld KB/s (%lld bytes in %lld.%03llds)\n",
((((long long) total_bytes) * 1000000LL) / t) / 1024LL,
- total_bytes, (t / 1000000LL), (t % 1000000LL) / 1000LL);
+ (long long) total_bytes, (t / 1000000LL), (t % 1000000LL) / 1000LL);
}
void sync_quit(int fd)