From a3443ab1d5f169d9cdef3e156095c1550e883e59 Mon Sep 17 00:00:00 2001 From: varun-r-mallya Date: Wed, 8 Oct 2025 05:16:36 +0530 Subject: [PATCH] format chore Signed-off-by: varun-r-mallya --- examples/kprobes.py | 2 +- pythonbpf/functions_pass.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/kprobes.py b/examples/kprobes.py index 3796d03..bb0a678 100644 --- a/examples/kprobes.py +++ b/examples/kprobes.py @@ -10,7 +10,7 @@ def hello_world(ctx: c_void_p) -> c_int64: @bpf @section("kprobe/do_unlinkat") -def hello_world(ctx: c_void_p) -> c_int64: +def hello_world2(ctx: c_void_p) -> c_int64: print("Hello, World!") return c_int64(0) diff --git a/pythonbpf/functions_pass.py b/pythonbpf/functions_pass.py index d1ea526..c4b0fb6 100644 --- a/pythonbpf/functions_pass.py +++ b/pythonbpf/functions_pass.py @@ -410,7 +410,7 @@ def process_stmt( raise ValueError("Failed to evaluate return expression") if val[1] != ret_type: raise ValueError( - "Return type mismatch: expected " f"{ret_type}, got {val[1]}" + f"Return type mismatch: expected {ret_type}, got {val[1]}" ) builder.ret(val[0]) did_return = True @@ -420,8 +420,7 @@ def process_stmt( val = builder.load(var) if val.type != ret_type: raise ValueError( - "Return type mismatch: expected" - f"{ret_type}, got {val.type}" + f"Return type mismatch: expected{ret_type}, got {val.type}" ) builder.ret(val) did_return = True