From: fangqiurong <fangqiurong@kylinos.cn>
The error path after scx_bpf_create_dsq(real_dsq_id, ...) was reporting
test_dsq_id instead of real_dsq_id in the error message, which would
mislead debugging.
Signed-off-by: fangqiurong <fangqiurong@kylinos.cn>
---
tools/testing/selftests/sched_ext/peek_dsq.bpf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/sched_ext/peek_dsq.bpf.c b/tools/testing/selftests/sched_ext/peek_dsq.bpf.c
index 96e3a336a8a6..7f23fb17b1e0 100644
--- a/tools/testing/selftests/sched_ext/peek_dsq.bpf.c
+++ b/tools/testing/selftests/sched_ext/peek_dsq.bpf.c
@@ -197,7 +197,7 @@ s32 BPF_STRUCT_OPS_SLEEPABLE(peek_dsq_init)
}
err = scx_bpf_create_dsq(real_dsq_id, -1);
if (err) {
- scx_bpf_error("Failed to create DSQ %d: %d", test_dsq_id, err);
+ scx_bpf_error("Failed to create DSQ %d: %d", real_dsq_id, err);
return err;
}
--
2.25.1