mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
Remove unnecessary prints
This commit is contained in:
@ -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:
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user