From 703e01e6e249e6d0a74e0cbab827b235032ec7f3 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Thu, 29 Mar 2012 23:35:36 +0200 Subject: tracetool: dtrace: handle in and next reserved words Signed-off-by: Alon Levy Signed-off-by: Stefan Hajnoczi --- scripts/tracetool | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/tracetool b/scripts/tracetool index a279c2c58b..5e77aa243d 100755 --- a/scripts/tracetool +++ b/scripts/tracetool @@ -506,10 +506,12 @@ EOF i=1 for arg in $arglist do - # 'limit' is a reserved keyword - if [ "$arg" = "limit" ]; then - arg="_limit" - fi + # postfix reserved words with '_' + case "$arg" in + limit|in|next|self) + arg="${arg}_" + ;; + esac cat <