summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Block2012-01-06 08:13:42 -0600
committerSteve Block2012-01-08 05:03:26 -0600
commit01dda204cd28fe181691b4a44a51be7e5666d0c8 (patch)
tree99ef6d14b55ebf4e2752cd182052caad6eddc20a /libdiskconfig/write_lst.c
parent36afde3387fff9eac0e6d54854b8d43fe1ebb0cc (diff)
downloadplatform-system-core-01dda204cd28fe181691b4a44a51be7e5666d0c8.tar.gz
platform-system-core-01dda204cd28fe181691b4a44a51be7e5666d0c8.tar.xz
platform-system-core-01dda204cd28fe181691b4a44a51be7e5666d0c8.zip
Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE
Bug: 5449033 Change-Id: Ibcffdcf620ebae1c389446ce8e9d908f11ac039c
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 d99a80774..826ef7a3c 100644
--- a/libdiskconfig/write_lst.c
+++ b/libdiskconfig/write_lst.c
@@ -32,7 +32,7 @@ alloc_wl(uint32_t data_len)
32 struct write_list *item; 32 struct write_list *item;
33 33
34 if (!(item = malloc(sizeof(struct write_list) + data_len))) { 34 if (!(item = malloc(sizeof(struct write_list) + data_len))) {
35 LOGE("Unable to allocate memory."); 35 ALOGE("Unable to allocate memory.");
36 return NULL; 36 return NULL;
37 } 37 }
38 38
@@ -71,13 +71,13 @@ 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 LOGE("Cannot seek to the specified position (%lld).", lst->offset); 74 ALOGE("Cannot seek to the specified position (%lld).", 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 LOGE("Failed writing %u bytes at position %lld.", lst->len, 80 ALOGE("Failed writing %u bytes at position %lld.", lst->len,
81 lst->offset); 81 lst->offset);
82 goto fail; 82 goto fail;
83 } 83 }