diff options
author | Alon Levy <alevy@redhat.com> | 2012-03-29 23:35:36 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2012-03-30 11:55:21 +0100 |
commit | 703e01e6e249e6d0a74e0cbab827b235032ec7f3 (patch) | |
tree | f5a798fb7e228ec8d161ee6cb5c947d3ed4154af /scripts | |
parent | 60be795f0b9ca06030b942367a82d80f125a50f7 (diff) | |
download | qemu-703e01e6e249e6d0a74e0cbab827b235032ec7f3.zip qemu-703e01e6e249e6d0a74e0cbab827b235032ec7f3.tar.gz qemu-703e01e6e249e6d0a74e0cbab827b235032ec7f3.tar.bz2 |
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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/tracetool | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/tracetool b/scripts/tracetool index a279c2c..5e77aa2 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 |