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 <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: David Riley <davidriley@chromium.org>
This commit is contained in:
Mike Frysinger
2017-09-23 05:27:44 -04:00
committed by chrome-bot
parent 5337484629
commit 6d301ca142

View File

@@ -51,21 +51,21 @@ V_VIDOFF="\e[0m"
# Taken from src/scripts/common.sh. # Taken from src/scripts/common.sh.
# Arg: MESSAGE # Arg: MESSAGE
info() { 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. # Prints a warning message.
# Taken from src/scripts/common.sh. # Taken from src/scripts/common.sh.
# Arg: MESSAGE # Arg: MESSAGE
warn() { 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. # Prints the specified error and exit the script with an error code.
# Taken from src/scripts/common.sh. # Taken from src/scripts/common.sh.
# Args: MESSAGE # Args: MESSAGE
error() { 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) TEMP_LOOP_LIST=$(mktemp)