summaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-12-14 23:07:32 -0800
committerMike Lockwood <lockwood@android.com>2010-12-14 23:08:43 -0800
commitee878753f915a0176ea411b71bdffde064e24ae0 (patch)
tree2e3a9adcf3b17681ef3ef6d7f22cd3e5fafdd449 /adb
parent3227b5c25f17b19d65e1fe7ec27e62c5430bd258 (diff)
downloadsystem_core-ee878753f915a0176ea411b71bdffde064e24ae0.zip
system_core-ee878753f915a0176ea411b71bdffde064e24ae0.tar.gz
system_core-ee878753f915a0176ea411b71bdffde064e24ae0.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>
Diffstat (limited to 'adb')
-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)