Pass down type info in local_sym_tab

This commit is contained in:
Pragyansh Chaturvedi
2025-09-25 23:43:19 +05:30
parent ba90af9ff2
commit 943697ac9f
2 changed files with 15 additions and 1 deletions

View File

@ -85,6 +85,7 @@ def bpf_printk_emitter(call, map_ptr, module, builder, func, local_sym_tab=None,
raise NotImplementedError(
"Only string and integer constants are supported in f-string.")
elif isinstance(value, ast.FormattedValue):
print("Formatted value:", ast.dump(value))
# Assume int for now
fmt_parts.append("%lld")
if isinstance(value.value, ast.Name):