lkml.org 
[lkml]   [2015]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC] scripts: kerrno.sh - errno translator
From
2015-04-30 13:04 GMT+02:00 Richard Weinberger <richard.weinberger@gmail.com>:
> On Thu, Apr 30, 2015 at 12:53 PM, Bartosz Golaszewski
> <bgolaszewski@baylibre.com> wrote:
>> Shell script allowing to find errno definitions and descriptions in the
>> kernel source.
>>
>> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
>> ---
>> This is a simple script I use when seeing messages like:
>>
>> some_func() failed: -123
>
> What is wrong with a one-liner like:
> gcc -E -dD - < include/uapi/linux/errno.h |grep -E "^#define E.* 123$"

Nothing really - the output is less nice, that's all.

Bart


\
 
 \ /
  Last update: 2015-04-30 13:41    [W:0.143 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site