On 7/21/26 15:48, Mark Brown wrote:
> On Tue, Jul 21, 2026 at 03:39:09PM +0200, David Hildenbrand (Arm) wrote:
>> On 7/16/26 14:32, Sarthak Sharma wrote:
> 
>>>     fd = open(path, O_RDONLY);
>>> -   if (fd == -1)
>>> -           return 0;
>>> +   if (fd == -1) {
>>> +           int err = errno;
>>> +
>>> +           printf("# %s: %s (%d)\n", path, strerror(err), err);
> 
>> Shouldn't we be using
> 
>> ksft_print_msg()
> 
>> That does the magic "# " for us.
> 
> Or ksft_perror().


Right, and if we want to move this to tools/lib/mm later, maybe we can just not
print anything and instead only return expressive errnos.

-- 
Cheers,

David

Reply via email to