summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2015-12-10 00:29:45 +0100
committerTianjie Xu <xunchang@google.com>2015-12-10 20:12:29 +0100
commitb686ba211443490111729ba9d82eb0c0b305e185 (patch)
tree9dee6562aab8465e448f7741515183441df686ee
parentMerge "Track rename from base/ to android-base/." am: 06ca938ce2 (diff)
downloadandroid_bootable_recovery-b686ba211443490111729ba9d82eb0c0b305e185.tar
android_bootable_recovery-b686ba211443490111729ba9d82eb0c0b305e185.tar.gz
android_bootable_recovery-b686ba211443490111729ba9d82eb0c0b305e185.tar.bz2
android_bootable_recovery-b686ba211443490111729ba9d82eb0c0b305e185.tar.lz
android_bootable_recovery-b686ba211443490111729ba9d82eb0c0b305e185.tar.xz
android_bootable_recovery-b686ba211443490111729ba9d82eb0c0b305e185.tar.zst
android_bootable_recovery-b686ba211443490111729ba9d82eb0c0b305e185.zip
-rw-r--r--updater/blockimg.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp
index a9d8cc68c..9a76a2428 100644
--- a/updater/blockimg.cpp
+++ b/updater/blockimg.cpp
@@ -1659,6 +1659,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);
@@ -1709,7 +1712,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"));
}