2015-04-30 13:04 GMT+02:00 Richard Weinberger <richard.weinber...@gmail.com>:
> On Thu, Apr 30, 2015 at 12:53 PM, Bartosz Golaszewski
> <bgolaszew...@baylibre.com> wrote:
>> Shell script allowing to find errno definitions and descriptions in the
>> kernel source.
>>
>> Signed-off-by: Bartosz Golaszewski <bgolaszew...@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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to