[U-Boot] [PATCH v2 4/5] lib: Import hexdump.c from Linux

Simon Glass sjg at chromium.org
Wed May 23 16:33:54 UTC 2018


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?

Regards,
Simon


More information about the U-Boot mailing list