24 Sep, 2016
1 commit
-
Now, include/linux/errno.h is a wrapper of .
Replace all include directives for with
.is supposed to be included from when
arch-headers fall back into generic implementation. Generally, they
should not be directly included from .c files.Signed-off-by: Masahiro Yamada
[trini: Add drivers/usb/host/xhci-rockchip.c]
Signed-off-by: Tom Rini
06 Jul, 2016
2 commits
-
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
Signed-off-by: Tom Warren -
Bring in a copyright for this file from cmd/pmic.c since this file was
submitted by the same author at around the same time. Also fix the missing
header guard.Signed-off-by: Simon Glass
Signed-off-by: Tom Warren
12 Dec, 2014
1 commit
-
The functions error's numbers are standarized - but the error
messages are not.The errors are often handled with unclear error messages,
so why not use an errno standarized messages.Advantages:
- This could decrease the binary size.
- Appended with a detailed information,
the error message will be clear.This commit introduces new function:
- const char *errno_to_str(int errno)The functions returns a pointer to the errno corresponding text message:
- if errno is null or positive number - a pointer to "Success" message
- if errno is negative - a pointer to errno related messageSigned-off-by: Przemyslaw Marczak
Reviewed-by: Tom Rini
20 Sep, 2010
1 commit
-
Needed for hash table support; probably useful in a lot of other
places as well.Signed-off-by: Wolfgang Denk