Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

isdn: use the common ascii hex helpers

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Acked-by: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Harvey Harrison and committed by
David S. Miller
02137f2e 12dac075

+2 -3
+2 -3
drivers/isdn/gigaset/isocdata.c
··· 247 247 #ifdef CONFIG_GIGASET_DEBUG 248 248 unsigned char c; 249 249 static char dbgline[3 * 32 + 1]; 250 - static const char hexdigit[] = "0123456789abcdef"; 251 250 int i = 0; 252 251 while (count-- > 0) { 253 252 if (i > sizeof(dbgline) - 4) { ··· 257 258 c = *bytes++; 258 259 dbgline[i] = (i && !(i % 12)) ? '-' : ' '; 259 260 i++; 260 - dbgline[i++] = hexdigit[(c >> 4) & 0x0f]; 261 - dbgline[i++] = hexdigit[c & 0x0f]; 261 + dbgline[i++] = hex_asc_hi(c); 262 + dbgline[i++] = hex_asc_lo(c); 262 263 } 263 264 dbgline[i] = '\0'; 264 265 gig_dbg(level, "%s:%s", tag, dbgline);