From 99d6c193f68abedbe1baaa710dcd30cfc9274a83 Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Wed, 1 Oct 2025 22:53:19 +0530 Subject: [PATCH] Fix calling of _simple_string_print --- pythonbpf/helper/bpf_helper_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonbpf/helper/bpf_helper_handler.py b/pythonbpf/helper/bpf_helper_handler.py index 5cf133f..b2bb666 100644 --- a/pythonbpf/helper/bpf_helper_handler.py +++ b/pythonbpf/helper/bpf_helper_handler.py @@ -80,7 +80,7 @@ def bpf_printk_emitter(call, map_ptr, module, builder, func, elif isinstance(call.args[0], ast.Constant) and isinstance(call.args[0].value, str): # TODO: We are onbly supporting single arguments for now. # In case of multiple args, the first one will be taken. - args = _simple_string_print(call.args[0], module, builder, func) + args = _simple_string_print(call.args[0].value, module, builder, func) else: raise NotImplementedError( "Only simple string literals or f-strings are supported in bpf_printk.")