Skip to content

Commit 99d6c19

Browse files
committed
Fix calling of _simple_string_print
1 parent 4f33db2 commit 99d6c19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pythonbpf/helper/bpf_helper_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def bpf_printk_emitter(call, map_ptr, module, builder, func,
8080
elif isinstance(call.args[0], ast.Constant) and isinstance(call.args[0].value, str):
8181
# TODO: We are onbly supporting single arguments for now.
8282
# In case of multiple args, the first one will be taken.
83-
args = _simple_string_print(call.args[0], module, builder, func)
83+
args = _simple_string_print(call.args[0].value, module, builder, func)
8484
else:
8585
raise NotImplementedError(
8686
"Only simple string literals or f-strings are supported in bpf_printk.")

0 commit comments

Comments
 (0)