apply python code formatter (autopep8)
@@ -441,6 +441,7 @@ def prepare_context(d_files: list):
parse_and_analyze(context, Path(d_file))
return context
+
def build_bpf_header_generator():
generator = r"""
#define GEN_FIELD_INFO(type, field, name) gen_field_info(#type, #field, &((type *)NULL)->field, name)
@@ -714,6 +715,7 @@ std::string h2o_raw_tracer::bpf_text() {
""" % (build_typedef_for_cplusplus(), build_bpf_header_generator(), event_id_t_decl, event_t_decl, usdts_def, handle_event_func, bpf))
+
def usage():
print("usage: %s output_file d_files..." % sys.argv[0])
sys.exit(1)
