From: Tilman Schmidt <tilman@imap.cc>
To: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 11/12] isdn: use the common ascii hex helpers
Date: Wed, 07 May 2008 21:02:25 +0200 [thread overview]
Message-ID: <4821FCC1.8070907@imap.cc> (raw)
In-Reply-To: <1209754916.26173.37.camel@brick>
[-- Attachment #1: Type: text/plain, Size: 1213 bytes --]
On 02.05.2008 21:01, Harvey Harrison wrote:
> Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Acked-by: Tilman Schmidt <tilman@imap.cc>
Thanks,
Tilman
> ---
> drivers/isdn/gigaset/isocdata.c | 5 ++---
> 1 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/isdn/gigaset/isocdata.c b/drivers/isdn/gigaset/isocdata.c
> index e30a777..fbce522 100644
> --- a/drivers/isdn/gigaset/isocdata.c
> +++ b/drivers/isdn/gigaset/isocdata.c
> @@ -247,7 +247,6 @@ static inline void dump_bytes(enum debuglevel level, const char *tag,
> #ifdef CONFIG_GIGASET_DEBUG
> unsigned char c;
> static char dbgline[3 * 32 + 1];
> - static const char hexdigit[] = "0123456789abcdef";
> int i = 0;
> while (count-- > 0) {
> if (i > sizeof(dbgline) - 4) {
> @@ -258,8 +257,8 @@ static inline void dump_bytes(enum debuglevel level, const char *tag,
> c = *bytes++;
> dbgline[i] = (i && !(i % 12)) ? '-' : ' ';
> i++;
> - dbgline[i++] = hexdigit[(c >> 4) & 0x0f];
> - dbgline[i++] = hexdigit[c & 0x0f];
> + dbgline[i++] = hex_asc_hi(c);
> + dbgline[i++] = hex_asc_lo(c);
> }
> dbgline[i] = '\0';
> gig_dbg(level, "%s:%s", tag, dbgline);
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
prev parent reply other threads:[~2008-05-07 19:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-02 19:01 [PATCH 11/12] isdn: use the common ascii hex helpers Harvey Harrison
2008-05-07 19:02 ` Tilman Schmidt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4821FCC1.8070907@imap.cc \
--to=tilman@imap.cc \
--cc=akpm@linux-foundation.org \
--cc=harvey.harrison@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox