Skip to content

Commit

Permalink
auto import from //depot/cupcake/@132589
Browse files Browse the repository at this point in the history
  • Loading branch information
The Android Open Source Project committed Mar 3, 2009
1 parent c2d26a1 commit a1e1c1b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion logcat/event-log-tags
Original file line number Diff line number Diff line change
Expand Up @@ -343,4 +343,4 @@

# browser stats for diary study
70101 browser_zoom_level_change (start level|1|5),(end level|1|5),(time|2|3)
70102 browser_double_tap_duration (duration|1|3),(time|2|3)
70102 browser_double_tap_duration (duration|1|3),(time|2|3)
9 changes: 5 additions & 4 deletions toolbox/mkdosfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,9 @@ mkdosfs_main(int argc, char *argv[])
exit(1);
}

lseek64(fd1, 0, SEEK_SET);
loff_t length = lseek64(fd1, 0, SEEK_END);
lseek(fd1, 0, SEEK_SET);
off_t length = lseek(fd1, 0, SEEK_END);
fprintf(stderr, "lseek returned %ld\n", length);
if (length > 0) {
bpb.bsec = length / bpb.bps;
bpb.spt = bpb.bsec;
Expand Down Expand Up @@ -614,8 +615,8 @@ mkdosfs_main(int argc, char *argv[])
fat == 32 && bpb.bkbs != MAXU16 &&
bss <= bpb.bkbs && x >= bpb.bkbs) {
x -= bpb.bkbs;
if (!x && lseek64(fd1, 0, SEEK_SET))
fprintf(stderr, "lseek64 failed for %s\n", bname);
if (!x && lseek(fd1, 0, SEEK_SET))
fprintf(stderr, "lseek failed for %s\n", bname);
}
if (opt_B && x < bss) {
if ((n = read(fd1, img, bpb.bps)) == -1)
Expand Down
2 changes: 1 addition & 1 deletion vold/blkdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ int blkdev_refresh(blkdev_t *blk)
(blk->type == blkdev_disk ? "Disk" : "Partition"),
blk->major, blk->minor,
blk->nr_sec,
(uint32_t) (((uint64_t) blk->nr_sec * 512) / 1024) / 1024);
((blk->nr_sec * 512) / 1024) / 1024);

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

0 comments on commit a1e1c1b

Please sign in to comment.