Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtla: Fix __set_sched_attr error message

rtla's function __set_sched_attr() was borrowed from stalld, but I
forgot to update the error message to something meaningful for rtla.

Update the error message from:
boost_with_deadline failed to boost pid PID: STRERROR
to a proper one:
Failed to set sched attributes to the pid PID: STRERROR

Link: https://lkml.kernel.org/r/a2d19b2c53f6512aefd1ee7f8c1bd19d4fc8b99d.1651247710.git.bristot@kernel.org
Link: https://lore.kernel.org/r/eeded730413e7feaa13f946924bcf2cbf7dd9561.1650617571.git.bristot@kernel.org/

Fixes: b1696371d865 ("rtla: Helper functions for rtla")
Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>

authored by

Daniel Bristot de Oliveira and committed by
Steven Rostedt (Google)
941a53c3 22d146f7

+1 -1
+1 -1
tools/tracing/rtla/src/utils.c
··· 255 255 256 256 retval = sched_setattr(pid, attr, flags); 257 257 if (retval < 0) { 258 - err_msg("boost_with_deadline failed to boost pid %d: %s\n", 258 + err_msg("Failed to set sched attributes to the pid %d: %s\n", 259 259 pid, strerror(errno)); 260 260 return 1; 261 261 }