aboutsummaryrefslogtreecommitdiffstats
path: root/tools/wireshark_gen.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/wireshark_gen.py')
-rwxr-xr-xtools/wireshark_gen.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/tools/wireshark_gen.py b/tools/wireshark_gen.py
index d2d837a2d5..324238bafd 100755
--- a/tools/wireshark_gen.py
+++ b/tools/wireshark_gen.py
@@ -115,13 +115,6 @@ import tempfile
class wireshark_gen_C:
-
- #
- # Turn DEBUG stuff on/off
- #
-
- DEBUG = 0
-
#
# Some string constants for our templates
#
@@ -147,7 +140,9 @@ class wireshark_gen_C:
# Constructor
#
- def __init__(self, st, protocol_name, dissector_name ,description):
+ def __init__(self, st, protocol_name, dissector_name ,description, debug=False):
+ self.DEBUG = debug
+
self.st = output.Stream(tempfile.TemporaryFile(),4) # for first pass only
self.st_save = st # where 2nd pass should go