Skip to content

Commit 690ff7f

Browse files
committed
Remove unnecessary prints
1 parent ba3e020 commit 690ff7f

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

pythonbpf/helper/bpf_helper_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def bpf_printk_emitter(call, map_ptr, module, builder, func,
8181
local_var_metadata)
8282
elif (isinstance(call.args[0], ast.Constant) and
8383
isinstance(call.args[0].value, str)):
84-
# TODO: We are onbly supporting single arguments for now.
84+
# TODO: We are only supporting single arguments for now.
8585
# In case of multiple args, the first one will be taken.
8686
args = simple_string_print(call.args[0].value, module, builder, func)
8787
else:

pythonbpf/helper/helper_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ def _prepare_expr_args(expr, func, module, builder,
234234
local_sym_tab, struct_sym_tab,
235235
local_var_metadata):
236236
"""Evaluate and prepare an expression to use as an arg for bpf_printk."""
237-
print(f"{ast.dump(expr)}")
238237
val, _ = eval_expr(func, module, builder, expr,
239238
local_sym_tab, None, struct_sym_tab,
240239
local_var_metadata)

0 commit comments

Comments
 (0)