diff options
author | Alon Levy | 2012-03-29 23:35:36 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2012-03-30 12:55:21 +0200 |
commit | 703e01e6e249e6d0a74e0cbab827b235032ec7f3 (patch) | |
tree | f5a798fb7e228ec8d161ee6cb5c947d3ed4154af | |
parent | tracetool: dtrace disabled-events fix (diff) | |
download | qemu-703e01e6e249e6d0a74e0cbab827b235032ec7f3.tar.gz qemu-703e01e6e249e6d0a74e0cbab827b235032ec7f3.tar.xz qemu-703e01e6e249e6d0a74e0cbab827b235032ec7f3.zip |
tracetool: dtrace: handle in and next reserved words
Signed-off-by: Alon Levy <alevy@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-rwxr-xr-x | scripts/tracetool | 10 |
1 files changed, 6 insertions, 4 deletions
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 <<EOF $arg = \$arg$i; EOF |