summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2015-12-11 01:12:30 +0100
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-12-11 01:12:30 +0100
commit72c87cc88f8d308cfa5a1f7119e54a93b01a8e85 (patch)
tree4502440b473385380ae6a2c973e2c2ca12259a91 /updater
parentMerge changes If00669a7,Ia5504ed2 am: ddde4676b6 (diff)
parentupdater: Output msg when recovery is called (diff)
downloadandroid_bootable_recovery-72c87cc88f8d308cfa5a1f7119e54a93b01a8e85.tar
android_bootable_recovery-72c87cc88f8d308cfa5a1f7119e54a93b01a8e85.tar.gz
android_bootable_recovery-72c87cc88f8d308cfa5a1f7119e54a93b01a8e85.tar.bz2
android_bootable_recovery-72c87cc88f8d308cfa5a1f7119e54a93b01a8e85.tar.lz
android_bootable_recovery-72c87cc88f8d308cfa5a1f7119e54a93b01a8e85.tar.xz
android_bootable_recovery-72c87cc88f8d308cfa5a1f7119e54a93b01a8e85.tar.zst
android_bootable_recovery-72c87cc88f8d308cfa5a1f7119e54a93b01a8e85.zip
Diffstat (limited to 'updater')
-rw-r--r--updater/blockimg.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp
index 50067d479..3b26f057a 100644
--- a/updater/blockimg.cpp
+++ b/updater/blockimg.cpp
@@ -1670,6 +1670,9 @@ Value* BlockImageRecoverFn(const char* name, State* state, int argc, Expr* argv[
return StringValue(strdup(""));
}
+ // Output notice to log when recover is attempted
+ fprintf(stderr, "%s image corrupted, attempting to recover...\n", filename->data);
+
// When opened with O_RDWR, libfec rewrites corrupted blocks when they are read
fec::io fh(filename->data, O_RDWR);
@@ -1720,7 +1723,7 @@ Value* BlockImageRecoverFn(const char* name, State* state, int argc, Expr* argv[
// read and check if the errors field value has increased.
}
}
-
+ fprintf(stderr, "...%s image recovered successfully.\n", filename->data);
return StringValue(strdup("t"));
}