summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Zongker <dougz@google.com>2014-08-06 19:40:22 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2014-08-06 19:40:22 +0200
commit1eeac62ad9df8cd2171184b2e5aa1c7d79a77c2f (patch)
tree9219b4582e77d19894177bd4acf86477fb0e431e
parentam 78d458c3: Fix length printing + formats (diff)
parentremove spurious parens from error message (diff)
downloadandroid_bootable_recovery-1eeac62ad9df8cd2171184b2e5aa1c7d79a77c2f.tar
android_bootable_recovery-1eeac62ad9df8cd2171184b2e5aa1c7d79a77c2f.tar.gz
android_bootable_recovery-1eeac62ad9df8cd2171184b2e5aa1c7d79a77c2f.tar.bz2
android_bootable_recovery-1eeac62ad9df8cd2171184b2e5aa1c7d79a77c2f.tar.lz
android_bootable_recovery-1eeac62ad9df8cd2171184b2e5aa1c7d79a77c2f.tar.xz
android_bootable_recovery-1eeac62ad9df8cd2171184b2e5aa1c7d79a77c2f.tar.zst
android_bootable_recovery-1eeac62ad9df8cd2171184b2e5aa1c7d79a77c2f.zip
Diffstat (limited to '')
-rw-r--r--updater/install.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/updater/install.c b/updater/install.c
index 5025881d2..198618001 100644
--- a/updater/install.c
+++ b/updater/install.c
@@ -353,15 +353,14 @@ Value* RenameFn(const char* name, State* state, int argc, Expr* argv[]) {
goto done;
}
if (strlen(dst_name) == 0) {
- ErrorAbort(state, "dst_name argument to %s() can't be empty",
- name);
+ ErrorAbort(state, "dst_name argument to %s() can't be empty", name);
goto done;
}
if (make_parents(dst_name) != 0) {
- ErrorAbort(state, "Creating parent of %s() failed, error %s()",
+ ErrorAbort(state, "Creating parent of %s failed, error %s",
dst_name, strerror(errno));
} else if (rename(src_name, dst_name) != 0) {
- ErrorAbort(state, "Rename of %s() to %s() failed, error %s()",
+ ErrorAbort(state, "Rename of %s to %s failed, error %s",
src_name, dst_name, strerror(errno));
} else {
result = dst_name;