On Tue, Oct 15, 2019 at 10:07 PM Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx> wrote: > +const char *errname(int err) > +{ > + const char *name = __errname(err > 0 ? err : -err); Looks like mine comment left unseen. What about to simple use abs(err) here? > + if (!name) > + return NULL; > + > + return err > 0 ? name + 1 : name; > +} -- With Best Regards, Andy Shevchenko