From 6d301ca142846f54d55b75b1c77439ce2c25835e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 23 Sep 2017 05:27:44 -0400 Subject: [PATCH] image_signing: fix logging multiple args BUG=None TEST=ensure_sane_lsb-release.sh errors now include the full string BRANCH=None Change-Id: I460ec5e2127a57e7576214fe8fde9e511f940755 Reviewed-on: https://chromium-review.googlesource.com/680038 Commit-Ready: Mike Frysinger Tested-by: Mike Frysinger Reviewed-by: David Riley --- scripts/image_signing/common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/image_signing/common.sh b/scripts/image_signing/common.sh index f100be5647..f2fedfa266 100644 --- a/scripts/image_signing/common.sh +++ b/scripts/image_signing/common.sh @@ -51,21 +51,21 @@ V_VIDOFF="\e[0m" # Taken from src/scripts/common.sh. # Arg: MESSAGE info() { - echo -e >&2 "${V_BOLD_GREEN}${CROS_LOG_PREFIX:-}INFO : $1${V_VIDOFF}" + echo -e >&2 "${V_BOLD_GREEN}${CROS_LOG_PREFIX:-}INFO : $*${V_VIDOFF}" } # Prints a warning message. # Taken from src/scripts/common.sh. # Arg: MESSAGE warn() { - echo -e >&2 "${V_BOLD_YELLOW}${CROS_LOG_PREFIX:-}WARNING: $1${V_VIDOFF}" + echo -e >&2 "${V_BOLD_YELLOW}${CROS_LOG_PREFIX:-}WARNING: $*${V_VIDOFF}" } # Prints the specified error and exit the script with an error code. # Taken from src/scripts/common.sh. # Args: MESSAGE error() { - echo -e >&2 "${V_BOLD_RED}${CROS_LOG_PREFIX:-}ERROR : $1${V_VIDOFF}" + echo -e >&2 "${V_BOLD_RED}${CROS_LOG_PREFIX:-}ERROR : $*${V_VIDOFF}" } TEMP_LOOP_LIST=$(mktemp)