On Thu, Aug 29, 2024 at 11:55:33AM +0530, Dev Jain wrote:
On 8/28/24 16:10, Mark Brown wrote:
ksft_exit_fail_msg("raise(SIGSTOP)", strerror(errno));
ksft_exit_fail_perror("raise(SIGSTOP)");
The idea with these is to include the error code as well so adding the %s would be better.
ksft_exit_fail_perror() can do that thing for us.
Oh, sorry - I missed that it was changing to _perror() as well as removing the argument. Yes, that's fine.