Re: [RFC] scripts: kerrno.sh - errno translator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 30, 2015 at 12:53 PM, Bartosz Golaszewski
<bgolaszewski@xxxxxxxxxxxx> wrote:
> Shell script allowing to find errno definitions and descriptions in the
> kernel source.
>
> Signed-off-by: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>
> ---
> 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$"

-- 
Thanks,
//richard
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux