]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
sched_ext/selftests: Fix format specifier and buffer length in file_write_long()
authorCheng-Yang Chou <yphbchou0911@gmail.com>
Wed, 4 Mar 2026 19:57:57 +0000 (03:57 +0800)
committerTejun Heo <tj@kernel.org>
Wed, 4 Mar 2026 22:07:43 +0000 (12:07 -1000)
commit6944e6d8a6d4c1e654de1da112da8fef1b30e623
treef28acc38fc3aa540bdcd9dc467596e63c7d9670e
parent7a8464555d2e5f038758bb19e72ab4710b79e9cd
sched_ext/selftests: Fix format specifier and buffer length in file_write_long()

Use %ld (not %lu) for signed long, and pass the actual string length
returned by sprintf() to write_text() instead of sizeof(buf).

Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/sched_ext/util.c