]> git.baikalelectronics.ru Git - uboot.git/commit
lib: errno: check for unsupported error number
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 15 Oct 2019 19:46:03 +0000 (21:46 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 31 Oct 2019 11:22:53 +0000 (07:22 -0400)
commitf4a09d019de99a560155a5896be729ee46e194e4
treef853f2c6876329ed66b2f2e7c1cd763ec82d60cb
parent6abb8cfa62a0569109f18ce264a65e3c0804bf6a
lib: errno: check for unsupported error number

If errno_str() is called with an unsupported error number, do not return a
random pointer but a reasonable text.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/errno_str.c