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)
commit02e8a8241bb5fff315f3e721992220428f288b6d
treef853f2c6876329ed66b2f2e7c1cd763ec82d60cb
parent80e7e7c2aba5793a1e39592cd53de9e5aca96f0b
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