diff mbox

[2/2] tracetool: dtrace: warn on reserved word usage

Message ID 1332944776-4037-2-git-send-email-alevy@redhat.com
State New
Headers show

Commit Message

Alon Levy March 28, 2012, 2:26 p.m. UTC
Signed-off-by: Alon Levy <alevy@redhat.com>
---
 scripts/tracetool |    1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/scripts/tracetool b/scripts/tracetool
index e7cebf3..d011bb7 100755
--- a/scripts/tracetool
+++ b/scripts/tracetool
@@ -496,6 +496,7 @@  EOF
     do
         # 'limit', 'in' and 'next' are reserved keywords
         if [ "$arg" = "limit" -o "$arg" = "in" -o "$arg" = "next" ]; then
+          echo "reserved word used in line: $1" 1>&2
           arg="_$arg"
         fi
         cat <<EOF