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().

Attachment: signature.asc
Description: PGP signature

Reply via email to