2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00

zdtm.sh: don't annotate printing separator line

It's useful, if you like execute bash -x zdtm.sh.
zdtm_sep isn't interesting for debugging needs.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin
2014-01-23 13:26:15 +04:00
committed by Pavel Emelyanov
parent f220e29889
commit d86d0f14e9

View File

@@ -175,7 +175,8 @@ BATCH_TEST=0
SPECIFIED_NAME_USED=0 SPECIFIED_NAME_USED=0
zdtm_sep() zdtm_sep()
{ { (
set +x
local msg=$1 local msg=$1
[ -n "$msg" ] && msg=" $msg " [ -n "$msg" ] && msg=" $msg "
awk -v m=${2:-=} -v "msg=$msg" ' awk -v m=${2:-=} -v "msg=$msg" '
@@ -186,7 +187,7 @@ zdtm_sep()
gsub(/ /, m, sep); gsub(/ /, m, sep);
printf("%s%s%s\n",sep,msg,sep); printf("%s%s%s\n",sep,msg,sep);
}' < /dev/null }' < /dev/null
} ) }
check_criu() check_criu()
{ {