Skip to content

Commit c2d26a1

Browse files
author
The Android Open Source Project
committed
auto import from //depot/cupcake/@137055
1 parent 3e292b9 commit c2d26a1

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

logcat/event-log-tags

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,4 +343,4 @@
343343

344344
# browser stats for diary study
345345
70101 browser_zoom_level_change (start level|1|5),(end level|1|5),(time|2|3)
346-
70102 browser_double_tap_duration (duration|1|3),(time|2|3)
346+
70102 browser_double_tap_duration (duration|1|3),(time|2|3)

toolbox/mkdosfs.c

+4-5
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,8 @@ mkdosfs_main(int argc, char *argv[])
387387
exit(1);
388388
}
389389

390-
lseek(fd1, 0, SEEK_SET);
391-
off_t length = lseek(fd1, 0, SEEK_END);
392-
fprintf(stderr, "lseek returned %ld\n", length);
390+
lseek64(fd1, 0, SEEK_SET);
391+
loff_t length = lseek64(fd1, 0, SEEK_END);
393392
if (length > 0) {
394393
bpb.bsec = length / bpb.bps;
395394
bpb.spt = bpb.bsec;
@@ -615,8 +614,8 @@ mkdosfs_main(int argc, char *argv[])
615614
fat == 32 && bpb.bkbs != MAXU16 &&
616615
bss <= bpb.bkbs && x >= bpb.bkbs) {
617616
x -= bpb.bkbs;
618-
if (!x && lseek(fd1, 0, SEEK_SET))
619-
fprintf(stderr, "lseek failed for %s\n", bname);
617+
if (!x && lseek64(fd1, 0, SEEK_SET))
618+
fprintf(stderr, "lseek64 failed for %s\n", bname);
620619
}
621620
if (opt_B && x < bss) {
622621
if ((n = read(fd1, img, bpb.bps)) == -1)

vold/blkdev.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ int blkdev_refresh(blkdev_t *blk)
149149
(blk->type == blkdev_disk ? "Disk" : "Partition"),
150150
blk->major, blk->minor,
151151
blk->nr_sec,
152-
((blk->nr_sec * 512) / 1024) / 1024);
152+
(uint32_t) (((uint64_t) blk->nr_sec * 512) / 1024) / 1024);
153153

154154
if (blk->type == blkdev_disk)
155155
sprintf(tmp2, " %d partitions", blk->nr_parts);

0 commit comments

Comments
 (0)