summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYing Wang2014-04-23 20:28:14 -0500
committerYing Wang2014-04-23 20:28:14 -0500
commit9d4c76f15249432c7bfdef1dca29597bcd90ac97 (patch)
treecbf4b84df9a549b2ed3cc8ec0c3a8b21985ac5a9 /libdiskconfig/write_lst.c
parent8f94e6204d994aa67e7483c9434834345fe338ce (diff)
downloadplatform-system-core-9d4c76f15249432c7bfdef1dca29597bcd90ac97.tar.gz
platform-system-core-9d4c76f15249432c7bfdef1dca29597bcd90ac97.tar.xz
platform-system-core-9d4c76f15249432c7bfdef1dca29597bcd90ac97.zip
Fix 64-bit host build.
Bug: 13751317 Change-Id: I8ba4fc9918fba0975eb61ec37a8a16b02acfa864
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)
71{ 71{
72 for(; lst; lst = lst->next) { 72 for(; lst; lst = lst->next) {
73 if (lseek64(fd, lst->offset, SEEK_SET) != (loff_t)lst->offset) { 73 if (lseek64(fd, lst->offset, SEEK_SET) != (loff_t)lst->offset) {
74 ALOGE("Cannot seek to the specified position (%lld).", lst->offset); 74 ALOGE("Cannot seek to the specified position (%lld).", (long long)lst->offset);
75 goto fail; 75 goto fail;
76 } 76 }
77 77
78 if (!test) { 78 if (!test) {
79 if (write(fd, lst->data, lst->len) != (int)lst->len) { 79 if (write(fd, lst->data, lst->len) != (int)lst->len) {
80 ALOGE("Failed writing %u bytes at position %lld.", lst->len, 80 ALOGE("Failed writing %u bytes at position %lld.", lst->len,
81 lst->offset); 81 (long long)lst->offset);
82 goto fail; 82 goto fail;
83 } 83 }
84 } else 84 } else
85 ALOGI("Would write %d bytes @ offset %lld.", lst->len, lst->offset); 85 ALOGI("Would write %d bytes @ offset %lld.", lst->len, (long long)lst->offset);
86 } 86 }
87 87
88 return 0; 88 return 0;