From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758647AbYELTGV (ORCPT ); Mon, 12 May 2008 15:06:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757033AbYELTFo (ORCPT ); Mon, 12 May 2008 15:05:44 -0400 Received: from wf-out-1314.google.com ([209.85.200.169]:41906 "EHLO wf-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756808AbYELTFk (ORCPT ); Mon, 12 May 2008 15:05:40 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=mz91HqmAQxfK+N8fiRhA/jnopYX7jSxNT8IzZPL/Mgo9IRR17jncRlq1Qrtc8uuJiOKUamKwbQ3P8v9kbP7RFxK6ViIIfo+GibKalAv4Cp+K33lbBtyDtfqok26rDBTaKyFfQbVG7CT8kud1Ts1MphYOsMsWditewdBGqQm5Kpo= Subject: [PATCH 04/12] isdn: use the common ascii hex helpers From: Harvey Harrison To: Andrew Morton Cc: David Miller , LKML Content-Type: text/plain Date: Mon, 12 May 2008 12:05:37 -0700 Message-Id: <1210619137.24092.55.camel@brick> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Harvey Harrison --- 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); -- 1.5.5.1.404.g981f6