[syslinux] [Syslinux] [PATCH] [RFC] lib: add a hex dump lib function
Sebastian Herbszt
herbszt at gmx.de
Sat Dec 12 06:08:57 PST 2009
Liu Aleaxander wrote:
> Hi all,
>
> Date: Thu, 10 Dec 2009 22:55:20 +0800
> Subject: [PATCH] [RFC] lib: add a hex dump lib function
>
> I think it would be better to have a hex dump routine; it would make
> debugging much easier since it can dump the data, like fs meta data,
> in a hex style, just like what the 'hexdump -C file' command does.
>
> BTW, I'm not sure where should I to put the hexdump function declaration.
> For now, I just put it in stdio.h, since I think it's a little better than
> adding a new hexdump.h
I would prefer hexdump.h.
> Signed-off-by: Liu Aleaxander <Aleaxander at gmail.com>
> ---
> com32/include/stdio.h | 2 ++
> com32/lib/Makefile | 2 +-
> com32/lib/hexdump.c | 42 ++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 45 insertions(+), 1 deletions(-)
> create mode 100644 com32/lib/hexdump.c
[snip]
> diff --git a/com32/lib/hexdump.c b/com32/lib/hexdump.c
> new file mode 100644
> index 0000000..04edbcf
> --- /dev/null
> +++ b/com32/lib/hexdump.c
> @@ -0,0 +1,42 @@
> +/*
> + * The hex dump lib.
> + *
> + * Copyright (C) 2009 Liu Aleaxander -- All rights reserved. This file
> + * may be redistributed under the terms of the GNU Public License.
> + */
> +
com32/LICENCE says libcom32 is under the MIT license.
- Sebastian
More information about the Syslinux
mailing list