From 690ff7ffbcd230395c3d8e3cbe26970df55ffce3 Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Wed, 1 Oct 2025 23:57:22 +0530 Subject: [PATCH] Remove unnecessary prints --- pythonbpf/helper/bpf_helper_handler.py | 2 +- pythonbpf/helper/helper_utils.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pythonbpf/helper/bpf_helper_handler.py b/pythonbpf/helper/bpf_helper_handler.py index caa00fa..a24d9ee 100644 --- a/pythonbpf/helper/bpf_helper_handler.py +++ b/pythonbpf/helper/bpf_helper_handler.py @@ -81,7 +81,7 @@ def bpf_printk_emitter(call, map_ptr, module, builder, func, local_var_metadata) elif (isinstance(call.args[0], ast.Constant) and isinstance(call.args[0].value, str)): - # TODO: We are onbly supporting single arguments for now. + # TODO: We are only supporting single arguments for now. # In case of multiple args, the first one will be taken. args = simple_string_print(call.args[0].value, module, builder, func) else: diff --git a/pythonbpf/helper/helper_utils.py b/pythonbpf/helper/helper_utils.py index 108c2a0..4bb504f 100644 --- a/pythonbpf/helper/helper_utils.py +++ b/pythonbpf/helper/helper_utils.py @@ -234,7 +234,6 @@ def _prepare_expr_args(expr, func, module, builder, local_sym_tab, struct_sym_tab, local_var_metadata): """Evaluate and prepare an expression to use as an arg for bpf_printk.""" - print(f"{ast.dump(expr)}") val, _ = eval_expr(func, module, builder, expr, local_sym_tab, None, struct_sym_tab, local_var_metadata)