Re: [PATCH v2] printf: add support for printing symbolic error codes

From: Pavel Machek
Date: Sun Sep 15 2019 - 05:43:33 EST

On Mon 2019-09-09 22:38:25, Rasmus Villemoes wrote:
> It has been suggested several times to extend vsnprintf() to be able
> to convert the numeric value of ENOSPC to print "ENOSPC". This is yet
> another attempt. Rather than adding another %p extension, simply teach
> plain %p to convert ERR_PTRs. While the primary use case is

For the record, I hate manually decoding errors, so I like this patch.

(cesky, pictures)