diff options
Diffstat (limited to 'tools/generate-sysdig-event.py')
-rwxr-xr-x | tools/generate-sysdig-event.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/generate-sysdig-event.py b/tools/generate-sysdig-event.py index 67419c8e..0cec2d3a 100755 --- a/tools/generate-sysdig-event.py +++ b/tools/generate-sysdig-event.py @@ -46,7 +46,7 @@ def get_url_lines(url): except urllib.error.URLError as err: exit_msg("URL error fetching {0}: {1}".format(url, err.reason)) except OSError as err: - exit_msg("OS error fetching {0}".format(url, err.strerror)) + exit_msg("OS error fetching {0}: {1}".format(url, err.strerror)) except Exception: exit_msg("Unexpected error:", sys.exc_info()[0]) @@ -274,7 +274,7 @@ def main(): strip_re_l.append(re.compile('^\s*{\s*&hf_param_.*},')) # Must all be on one line for strip_re in strip_re_l: - dissector_lines = [l for l in dissector_lines if not strip_re.search(l)] + dissector_lines = [line for line in dissector_lines if not strip_re.search(line)] # Find our value strings value_string_re = re.compile('static\s+const\s+value_string\s+([A-Za-z0-9_]+_vals)') @@ -290,7 +290,7 @@ def main(): header_fields_re = re.compile('/\*\s+' + header_fields_c, flags = re.IGNORECASE) header_fields_l = [] for hf_name in sorted(hf_d.keys()): - header_fields_l.append('static int {} = -1;'.format(hf_name)) + header_fields_l.append('static int {};'.format(hf_name)) event_names_c = 'Event names' event_names_re = re.compile('/\*\s+' + event_names_c, flags = re.IGNORECASE) |