aboutsummaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorDoug Zongker <dougz@google.com>2014-08-06 08:25:03 -0700
committerDoug Zongker <dougz@google.com>2014-08-06 08:25:03 -0700
commit2b5f0e0f767ce51d9605809052ad04fe83d1df83 (patch)
tree9219b4582e77d19894177bd4acf86477fb0e431e /updater
parent78d458c3d279a24a60fda013026b7a5454d01a9b (diff)
downloadbootable_recovery-2b5f0e0f767ce51d9605809052ad04fe83d1df83.zip
bootable_recovery-2b5f0e0f767ce51d9605809052ad04fe83d1df83.tar.gz
bootable_recovery-2b5f0e0f767ce51d9605809052ad04fe83d1df83.tar.bz2
remove spurious parens from error message
These error messages include empty parens after each string substition. Ill-advised cut and paste, probably. Bug: 16467401 Change-Id: Ib623172d6228354afdcc2e33442cc53a07f0ecbc
Diffstat (limited to 'updater')
-rw-r--r--updater/install.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/updater/install.c b/updater/install.c
index 5025881..1986180 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;