From a421bcb14e9e1910ae9e48f45f33770736aa6fa9 Mon Sep 17 00:00:00 2001 From: Pawel Wodkowski Date: Wed, 8 Aug 2018 21:57:55 +0200 Subject: [PATCH] configure: validate log backtrace level Closes #388 Change-Id: Iaac77d878d08962c9a05188eeeb70435e2af0fab Signed-off-by: Pawel Wodkowski Reviewed-on: https://review.gerrithub.io/421644 Tested-by: SPDK CI Jenkins Chandler-Test-Pool: SPDK Automated Test System Reviewed-by: Jim Harris Reviewed-by: Ben Walker --- configure | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure b/configure index 873bde2091..8baa8e7fb1 100755 --- a/configure +++ b/configure @@ -239,6 +239,15 @@ for i in "$@"; do esac done +case "$CONFIG_LOG_BACKTRACE" in + ""|ERROR|WARN|NOTICE|DEBUG) + ;; + *) + echo "Invalid '--enable-log-bt=$CONFIG_LOG_BACKTRACE' option. Valid levels are ERROR, WARN, NOTICE or DEBUG" + exit 1 + ;; +esac + if [ -z "$CONFIG_ENV" ]; then if [ -z "$CONFIG_DPDK_DIR" ]; then rootdir=$(readlink -f $(dirname $0))