[U-Boot] [PATCH 01/19] lib: errno: introduce errno_str(): returns errno related message

Simon Glass
2014-12-11T13:24:36Z

Hi Przemyslaw,

On 11 December 2014 at 03:11, Przemyslaw Marczak <p.marczak@samsung.com> wrote:
> Hello Simon,
>
>
> On 12/11/2014 04:25 AM, Simon Glass wrote:
>>
>> On 22 October 2014 at 09:31, Tom Rini <trini@ti.com> wrote:
>>>
>>> On Wed, Oct 08, 2014 at 10:48:37PM +0200, Przemyslaw Marczak wrote:
>>>
>>>> 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 message
>>>>
>>>> Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
>>>
>>>
>>> In and of itself,
>>>
>>> Reviewed-by: Tom Rini <trini@ti.com>
>>
>>
>> Applied to u-boot-dm, thanks!
>>
>> - Simon
>>
>
> Thank, maybe today or tomorrow I will send the I2C for exynos and next I can
> continue work on pmic.

OK sounds good. I've pushed DM I2C things to dm/master, although not
Tegra yet while I wait on the nyan-big patch.

Regards,
Simon