[U-Boot] [PATCH v2 4/5] lib: Import hexdump.c from Linux
Mario Six
mario.six at gdsys.cc
Fri May 25 11:22:03 UTC 2018
Hi Simon,
On Wed, May 23, 2018 at 6:33 PM, Simon Glass <sjg at chromium.org> wrote:
> Hi Mario,
>
> On 23 May 2018 at 06:09, Mario Six <mario.six at gdsys.cc> wrote:
>> Especially for commands, it is useful to be able to turn a hexadecimal
>> string into its binary representation.
>>
>> Hence, import the hex_to_bin, bin2hex, and hex2bin functions from the
>> Linux kernel.
>>
>> Signed-off-by: Mario Six <mario.six at gdsys.cc>
>>
>> ---
>>
>> v1 -> v2:
>> New in v2
>>
>> ---
>> include/linux/kernel.h | 4 +
>> lib/Makefile | 1 +
>> lib/hexdump.c | 321 +++++++++++++++++++++++++++++++++++++++++++++++++
>> 3 files changed, 326 insertions(+)
>> create mode 100644 lib/hexdump.c
>
> Does Linux have any tests for this code?
>
No, there are no tests for this. I'll write some for v3, then.
> Regards,
> Simon
>
Best regards,
Mario
More information about the U-Boot
mailing list