Skip to content

Commit a1e1c1b

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

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
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

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

390-
lseek64(fd1, 0, SEEK_SET);
391-
loff_t length = lseek64(fd1, 0, SEEK_END);
390+
lseek(fd1, 0, SEEK_SET);
391+
off_t length = lseek(fd1, 0, SEEK_END);
392+
fprintf(stderr, "lseek returned %ld\n", length);
392393
if (length > 0) {
393394
bpb.bsec = length / bpb.bps;
394395
bpb.spt = bpb.bsec;
@@ -614,8 +615,8 @@ mkdosfs_main(int argc, char *argv[])
614615
fat == 32 && bpb.bkbs != MAXU16 &&
615616
bss <= bpb.bkbs && x >= bpb.bkbs) {
616617
x -= bpb.bkbs;
617-
if (!x && lseek64(fd1, 0, SEEK_SET))
618-
fprintf(stderr, "lseek64 failed for %s\n", bname);
618+
if (!x && lseek(fd1, 0, SEEK_SET))
619+
fprintf(stderr, "lseek failed for %s\n", bname);
619620
}
620621
if (opt_B && x < bss) {
621622
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-
(uint32_t) (((uint64_t) blk->nr_sec * 512) / 1024) / 1024);
152+
((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)