]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
errno: Allow errno_str() to be used without CONFIG_ERRNO_STR
authorSimon Glass <sjg@chromium.org>
Sun, 8 May 2016 22:55:18 +0000 (16:55 -0600)
committerTom Warren <twarren@nvidia.com>
Tue, 5 Jul 2016 20:19:08 +0000 (13:19 -0700)
commit862887d8836643e316cd019b93b1732971c8aaf8
tree30096704913ded1105c10284aa441a937ab0c5e6
parent00e9e6d1ffb9786a7ca42cc41f5320303c1ab84f
errno: Allow errno_str() to be used without CONFIG_ERRNO_STR

The pmic framework uses errno_str() and this requires board that use it to
enable CONFIG_ERRNO_STR to avoid a build error. Update the header to provide
a NULL error message when CONFIG_ERRNO_STR is not defined, and fix the build
error.

This will show as "(null)" when U-Boot prints it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
include/errno.h