From 62898ffcbd4ed13ac0c92ad4b8f21e62ec6d7ab0 Mon Sep 17 00:00:00 2001 From: Hung-Te Lin Date: Wed, 21 Aug 2019 20:19:08 +0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1763968 Reviewed-by: Joel Kitching --- futility/updater.c | 4 ++-- 1 file 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; } -- cgit v1.2.1