[lkml]   [2013]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 5/5] lib: Add error string support to printks
On 09/20/2013 08:07 AM, David Howells wrote:
> I suspect he doesn't really need to implement a "strerror()" function but
> should rather build it straight into printk()/vsprintf().
> David

Indeed we don't necessarily *need* a strerror() function per-se, but it
is an addition to the libc support in the kernel. I'll leave it up to
the community to decide rather or not it should be separate or
integrated into vsprintf.c. Also, there is no POSIX or GNU libc
extension (that I am aware of) to print an error name -- a real shame
imho, so the name strerror_name() is pretty much artificial. Is there a
significant overhead in having these functions exported?

Personally, I would think that the only reason to have interest in an
error name or message in the kernel is to output via printk, but I like
to allow room for the conditions that I may not have thought of.


 \ /
  Last update: 2013-09-23 22:41    [W:0.059 / U:1.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site