diff options
author | Hung-Te Lin <hungte@chromium.org> | 2019-08-21 20:19:08 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-22 09:13:03 +0000 |
commit | 62898ffcbd4ed13ac0c92ad4b8f21e62ec6d7ab0 (patch) | |
tree | 7629ccb9d541e4d7336f65956c63289a8766078a /futility/updater.c | |
parent | 0b3ce4621893e4b4c0ecf3d50529f38a7633dd67 (diff) | |
download | vboot-62898ffcbd4ed13ac0c92ad4b8f21e62ec6d7ab0.tar.gz |
futility: updater: Fix incorrect line break in error message
The 'incompatible key' error message added the new line in wrong
location, causing the message to be truncated unexpectedly.
We should put the line break after whole message (including URL) is
printed.
BUG=None
TEST=make runfutiltests
BRANCH=None
Change-Id: Ic74da1c2657b9517dce786a72435275e7141348c
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1763968
Reviewed-by: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'futility/updater.c')
-rw-r--r-- | futility/updater.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/futility/updater.c b/futility/updater.c index ef142b8b..c3ffb66f 100644 --- a/futility/updater.c +++ b/futility/updater.c @@ -1738,8 +1738,8 @@ enum updater_error_codes update_firmware(struct updater_config *cfg) /* Providing more hints for what to do on failure. */ if (r == UPDATE_ERR_ROOT_KEY && wp_enabled) - ERROR("To change keys in RO area, you must first remove \n" - "write protection ( " REMOVE_WP_URL " )."); + ERROR("To change keys in RO area, you must first remove " + "write protection ( " REMOVE_WP_URL " ).\n"); return r; } |