[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080418132252.GA9275@osiris.boeblingen.de.ibm.com>
Date: Fri, 18 Apr 2008 15:22:52 +0200
From: Heiko Carstens <heiko.carstens@...ibm.com>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: LKML <linux-kernel@...r.kernel.org>, Ingo Molnar <mingo@...e.hu>,
Steven Rostedt <rostedt@...dmis.org>
Subject: Re: [PATCH] ftrace: simplify hex print
On Fri, Apr 18, 2008 at 02:33:20PM +0200, Thomas Gleixner wrote:
> simplify hex to ascii conversion with a lookup table.
>
> Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
> +static const char hex2asc[] = "0123456789abcdef";
[...]
> + hex[j++] = hex2asc[byte & 0x0f];
> + hex[j++] = hex2asc[byte >> 4];
we have hex_asc() in include/linux/kernel.h already.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists