[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <22ca3747-ad8a-666c-1d71-1def74103234@gr13.net>
Date: Mon, 26 Jun 2017 02:42:48 +0200
From: "Enrico Weigelt, metux IT consult" <enrico.weigelt@...3.net>
To: Randy Dunlap <rdunlap@...radead.org>,
Joe Perches <joe@...ches.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] lib: vsprintf: add printf format conversion %M for errno
strings
On 26.06.2017 00:47, Randy Dunlap wrote:
> but why not just do that in userspace.
Patch up syslogd (which one, actually?) to decode all the dozens of
different cases that print out errno values ?
Applying your argument more consequently - why do we have human-readable
messages at all, instead of just writing out message IDs as hexdumps or
binary stream (would make the kernel a lot smaller) ?
> but there's not really much need for it to be in the mainline kernel.
The idea was having a generic and convenient solution that can be used
by other parts of the kernel, too. (just like w/ all the other logging
helpers). That's also the reason why I added into vsprintf().
> So when your driver prints "blah: foo bar error 49",
> just run a little program that converts 49 to <whatever>.
How could that help when userland isn't even up yet ?
--mtx
--
Enrico, Sohn von Wilfried, a.d.F. Weigelt,
metux IT consulting
+49-151-27565287
Powered by blists - more mailing lists