lkml.org 
[lkml]   [2017]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] lib: vsprintf: add printf format conversion %M for errno strings
From
Date
On 25.06.2017 22:10, Joe Perches wrote:

>> Yeah, that's still an open problem. Actually, I still haven't found out,
>> how it's done w/ all the other kernel-internal conversions.
>
> Everything else uses "%p<foo>", <object reference>

hmm, but errno's aren't pointers. Isn't %p checked for pointer values ?
>> Already was about to do so. Shall I call it strerror() ?
>
> I presume kstrerror
>
> So use something like
> "%d: (%s)", errno, kstrerror(errno)

Okay, sounds good.

--mtx

\
 
 \ /
  Last update: 2017-06-25 23:19    [W:0.080 / U:1.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site