]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/isdn/gigaset/isocdata.c
isdn: use the common ascii hex helpers
[linux-2.6-omap-h63xx.git] / drivers / isdn / gigaset / isocdata.c
index e30a7773f93cefecdf315db52daf65c12948f4be..fbce5222d83cbab8e92826706ebfeba3256f1cec 100644 (file)
@@ -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);