From: fangqiurong Date: Fri, 10 Apr 2026 06:47:53 +0000 (+0800) Subject: selftests/sched_ext: Fix wrong DSQ ID in peek_dsq error message X-Git-Tag: v7.1-rc1~162^2~14 X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=dcd47f27c01e795395379025525bfd47a99a91e1;p=thirdparty%2Fkernel%2Flinux.git selftests/sched_ext: Fix wrong DSQ ID in peek_dsq error message 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 Signed-off-by: Tejun Heo --- diff --git a/tools/testing/selftests/sched_ext/peek_dsq.bpf.c b/tools/testing/selftests/sched_ext/peek_dsq.bpf.c index 96e3a336a8a60..7f23fb17b1e0f 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; }