diff options
author | Steve Block <steveblock@google.com> | 2012-01-06 10:47:31 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2012-01-06 10:53:00 +0100 |
commit | 210f887382e0fd7e51ec6ce071972374a76f0722 (patch) | |
tree | 94624dffe858afebc85802df0344a2d59310bdab /mtdutils | |
parent | Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE (diff) | |
download | android_bootable_recovery-210f887382e0fd7e51ec6ce071972374a76f0722.tar android_bootable_recovery-210f887382e0fd7e51ec6ce071972374a76f0722.tar.gz android_bootable_recovery-210f887382e0fd7e51ec6ce071972374a76f0722.tar.bz2 android_bootable_recovery-210f887382e0fd7e51ec6ce071972374a76f0722.tar.lz android_bootable_recovery-210f887382e0fd7e51ec6ce071972374a76f0722.tar.xz android_bootable_recovery-210f887382e0fd7e51ec6ce071972374a76f0722.tar.zst android_bootable_recovery-210f887382e0fd7e51ec6ce071972374a76f0722.zip |
Diffstat (limited to '')
-rw-r--r-- | mtdutils/flash_image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mtdutils/flash_image.c b/mtdutils/flash_image.c index 7ef6064f5..8e0e8d594 100644 --- a/mtdutils/flash_image.c +++ b/mtdutils/flash_image.c @@ -74,13 +74,13 @@ int main(int argc, char **argv) { MtdReadContext *in = mtd_read_partition(partition); if (in == NULL) { - LOGW("error opening %s: %s\n", argv[1], strerror(errno)); + ALOGW("error opening %s: %s\n", argv[1], strerror(errno)); // just assume it needs re-writing } else { char check[HEADER_SIZE]; int checklen = mtd_read_data(in, check, sizeof(check)); if (checklen <= 0) { - LOGW("error reading %s: %s\n", argv[1], strerror(errno)); + ALOGW("error reading %s: %s\n", argv[1], strerror(errno)); // just assume it needs re-writing } else if (checklen == headerlen && !memcmp(header, check, headerlen)) { ALOGI("header is the same, not flashing %s\n", argv[1]); |