@@ -62,7 +62,7 @@ def bpf_map_lookup_elem_emitter(
6262 """
6363 if not call .args or len (call .args ) != 1 :
6464 raise ValueError (
65- "Map lookup expects exactly one argument (key), got " f" { len (call .args )} "
65+ f "Map lookup expects exactly one argument (key), got { len (call .args )} "
6666 )
6767 key_ptr = get_or_create_ptr_from_arg (call .args [0 ], builder , local_sym_tab )
6868 map_void_ptr = builder .bitcast (map_ptr , ir .PointerType ())
@@ -145,8 +145,7 @@ def bpf_map_update_elem_emitter(
145145 """
146146 if not call .args or len (call .args ) < 2 or len (call .args ) > 3 :
147147 raise ValueError (
148- "Map update expects 2 or 3 args (key, value, flags), "
149- f"got { len (call .args )} "
148+ f"Map update expects 2 or 3 args (key, value, flags), got { len (call .args )} "
150149 )
151150
152151 key_arg = call .args [0 ]
@@ -196,7 +195,7 @@ def bpf_map_delete_elem_emitter(
196195 """
197196 if not call .args or len (call .args ) != 1 :
198197 raise ValueError (
199- "Map delete expects exactly one argument (key), got " f" { len (call .args )} "
198+ f "Map delete expects exactly one argument (key), got { len (call .args )} "
200199 )
201200 key_ptr = get_or_create_ptr_from_arg (call .args [0 ], builder , local_sym_tab )
202201 map_void_ptr = builder .bitcast (map_ptr , ir .PointerType ())
@@ -255,7 +254,7 @@ def bpf_perf_event_output_handler(
255254):
256255 if len (call .args ) != 1 :
257256 raise ValueError (
258- "Perf event output expects exactly one argument, " f" got { len (call .args )} "
257+ f "Perf event output expects exactly one argument, got { len (call .args )} "
259258 )
260259 data_arg = call .args [0 ]
261260 ctx_ptr = func .args [0 ] # First argument to the function is ctx
0 commit comments