From 079288265f1fafc5bdc43bc03e28e33ab9343aad Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Fri, 19 Sep 2025 22:34:19 +0530 Subject: [PATCH] Format integers in fstrings to display as u64 --- pythonbpf/bpf_helper_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonbpf/bpf_helper_handler.py b/pythonbpf/bpf_helper_handler.py index 45b7eb4..3689338 100644 --- a/pythonbpf/bpf_helper_handler.py +++ b/pythonbpf/bpf_helper_handler.py @@ -86,7 +86,7 @@ def bpf_printk_emitter(call, map_ptr, module, builder, func, local_sym_tab=None) "Only string and integer constants are supported in f-string.") elif isinstance(value, ast.FormattedValue): # Assume int for now - fmt_parts.append("%d") + fmt_parts.append("%lld") if isinstance(value.value, ast.Name): exprs.append(value.value) else: