Skip to content

Commit a3443ab

Browse files
format chore
Signed-off-by: varun-r-mallya <[email protected]>
1 parent a273604 commit a3443ab

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

examples/kprobes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def hello_world(ctx: c_void_p) -> c_int64:
1010

1111
@bpf
1212
@section("kprobe/do_unlinkat")
13-
def hello_world(ctx: c_void_p) -> c_int64:
13+
def hello_world2(ctx: c_void_p) -> c_int64:
1414
print("Hello, World!")
1515
return c_int64(0)
1616

pythonbpf/functions_pass.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def process_stmt(
410410
raise ValueError("Failed to evaluate return expression")
411411
if val[1] != ret_type:
412412
raise ValueError(
413-
"Return type mismatch: expected " f"{ret_type}, got {val[1]}"
413+
f"Return type mismatch: expected {ret_type}, got {val[1]}"
414414
)
415415
builder.ret(val[0])
416416
did_return = True
@@ -420,8 +420,7 @@ def process_stmt(
420420
val = builder.load(var)
421421
if val.type != ret_type:
422422
raise ValueError(
423-
"Return type mismatch: expected"
424-
f"{ret_type}, got {val.type}"
423+
f"Return type mismatch: expected{ret_type}, got {val.type}"
425424
)
426425
builder.ret(val)
427426
did_return = True

0 commit comments

Comments
 (0)