Re: [PATCH v3 02/29] selftests/resctrl: Return -1 instead of errno on error

2023-12-13 Thread Reinette Chatre
Hi Ilpo, On 12/11/2023 4:17 AM, Ilpo Järvinen wrote: > A number of functions in the resctrl selftests return errno. It is > problematic because errno is positive which is often counterintuitive. > Also, every sites returning errno prints the error message already with every sites -> every site >

[PATCH v3 02/29] selftests/resctrl: Return -1 instead of errno on error

2023-12-11 Thread Ilpo Järvinen
A number of functions in the resctrl selftests return errno. It is problematic because errno is positive which is often counterintuitive. Also, every sites returning errno prints the error message already with ksft_perror() so there is not much added value in returning the precise error code. Simp