1 diff --git a/bsd/kern/makekdebugevents.py b/bsd/kern/makekdebugevents.py
2 index 73b2db4..d354ba0 100755
3 --- a/bsd/kern/makekdebugevents.py
4 +++ b/bsd/kern/makekdebugevents.py
6 # named kd_events[] or these mappings.
7 # Required to generate a header file used by DEVELOPMENT and DEBUG kernels.
14 @@ -21,18 +21,18 @@ code_table = []
15 # scan file to generate internal table
16 with open(trace_code_file, 'rt') as codes:
18 - m = id_name_pattern.match(line)
20 + m = id_name_pattern.match(line)
22 code_table += [(int(m.group(1),base=16), m.group(2))]
25 -print "typedef struct {"
26 -print " uint32_t id;"
27 -print " const char *name;"
28 -print "} kd_event_t;"
29 +print("typedef struct {")
30 +print(" uint32_t id;")
31 +print(" const char *name;")
32 +print("} kd_event_t;")
33 # emit structure declaration and sorted initialization:
34 -print "kd_event_t kd_events[] = {"
35 +print("kd_event_t kd_events[] = {")
36 for mapping in sorted(code_table, key=lambda x: x[0]):
37 - print " {0x%x, \"%s\"}," % mapping
39 + print(" {0x%x, \"%s\"}," % mapping)