@@ -62,7 +62,7 @@ def bpf_map_lookup_elem_emitter(
62
62
"""
63
63
if not call .args or len (call .args ) != 1 :
64
64
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 )} "
66
66
)
67
67
key_ptr = get_or_create_ptr_from_arg (call .args [0 ], builder , local_sym_tab )
68
68
map_void_ptr = builder .bitcast (map_ptr , ir .PointerType ())
@@ -145,8 +145,7 @@ def bpf_map_update_elem_emitter(
145
145
"""
146
146
if not call .args or len (call .args ) < 2 or len (call .args ) > 3 :
147
147
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 )} "
150
149
)
151
150
152
151
key_arg = call .args [0 ]
@@ -196,7 +195,7 @@ def bpf_map_delete_elem_emitter(
196
195
"""
197
196
if not call .args or len (call .args ) != 1 :
198
197
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 )} "
200
199
)
201
200
key_ptr = get_or_create_ptr_from_arg (call .args [0 ], builder , local_sym_tab )
202
201
map_void_ptr = builder .bitcast (map_ptr , ir .PointerType ())
@@ -255,7 +254,7 @@ def bpf_perf_event_output_handler(
255
254
):
256
255
if len (call .args ) != 1 :
257
256
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 )} "
259
258
)
260
259
data_arg = call .args [0 ]
261
260
ctx_ptr = func .args [0 ] # First argument to the function is ctx
0 commit comments