summaryrefslogtreecommitdiffstats
path: root/libdiskconfig/write_lst.c
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2014-05-06 18:40:34 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-05-06 18:40:34 +0000
commit52dd7cc0bddbe6092f818827efd584466234d67b (patch)
tree5b26a7d1b2f1559f7bbf9c2959b55ae201bb34ff /libdiskconfig/write_lst.c
parent8e26b2522267658ef996631a3a43818c1baf6fc3 (diff)
parent34030101863575aaa14e318ff0a9d9462803e736 (diff)
downloadcore-52dd7cc0bddbe6092f818827efd584466234d67b.tar.gz
core-52dd7cc0bddbe6092f818827efd584466234d67b.tar.bz2
core-52dd7cc0bddbe6092f818827efd584466234d67b.zip
Merge "Fix 64-bit host build."
Diffstat (limited to 'libdiskconfig/write_lst.c')
-rw-r--r--libdiskconfig/write_lst.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskconfig/write_lst.c b/libdiskconfig/write_lst.c
index 826ef7a3c..90b1c829a 100644
--- a/libdiskconfig/write_lst.c
+++ b/libdiskconfig/write_lst.c
@@ -71,18 +71,18 @@ wlist_commit(int fd, struct write_list *lst, int test)
{
for(; lst; lst = lst->next) {
if (lseek64(fd, lst->offset, SEEK_SET) != (loff_t)lst->offset) {
- ALOGE("Cannot seek to the specified position (%lld).", lst->offset);
+ ALOGE("Cannot seek to the specified position (%lld).", (long long)lst->offset);
goto fail;
}
if (!test) {
if (write(fd, lst->data, lst->len) != (int)lst->len) {
ALOGE("Failed writing %u bytes at position %lld.", lst->len,
- lst->offset);
+ (long long)lst->offset);
goto fail;
}
} else
- ALOGI("Would write %d bytes @ offset %lld.", lst->len, lst->offset);
+ ALOGI("Would write %d bytes @ offset %lld.", lst->len, (long long)lst->offset);
}
return 0;