Revert "rcu-tasks: Fix show_rcu_tasks_trace_gp_kthread buffer overflow"

This reverts commit 84d6dbf54c.
This commit is contained in:
Ksawlii 2024-11-24 00:23:46 +01:00
parent bbcbbc3b23
commit 8a0aebb9d1

View file

@ -1240,7 +1240,7 @@ static void show_rcu_tasks_trace_gp_kthread(void)
{
char buf[64];
snprintf(buf, sizeof(buf), "N%d h:%lu/%lu/%lu", atomic_read(&trc_n_readers_need_end),
sprintf(buf, "N%d h:%lu/%lu/%lu", atomic_read(&trc_n_readers_need_end),
data_race(n_heavy_reader_ofl_updates),
data_race(n_heavy_reader_updates),
data_race(n_heavy_reader_attempts));