diff options
Diffstat (limited to 'drivers/misc/kgdbts.c')
-rw-r--r-- | drivers/misc/kgdbts.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/misc/kgdbts.c b/drivers/misc/kgdbts.c index fa394104339c..2763ae086531 100644 --- a/drivers/misc/kgdbts.c +++ b/drivers/misc/kgdbts.c | |||
@@ -119,7 +119,6 @@ | |||
119 | } while (0) | 119 | } while (0) |
120 | #define MAX_CONFIG_LEN 40 | 120 | #define MAX_CONFIG_LEN 40 |
121 | 121 | ||
122 | static const char hexchars[] = "0123456789abcdef"; | ||
123 | static struct kgdb_io kgdbts_io_ops; | 122 | static struct kgdb_io kgdbts_io_ops; |
124 | static char get_buf[BUFMAX]; | 123 | static char get_buf[BUFMAX]; |
125 | static int get_buf_cnt; | 124 | static int get_buf_cnt; |
@@ -619,8 +618,8 @@ static void fill_get_buf(char *buf) | |||
619 | count++; | 618 | count++; |
620 | } | 619 | } |
621 | strcat(get_buf, "#"); | 620 | strcat(get_buf, "#"); |
622 | get_buf[count + 2] = hexchars[checksum >> 4]; | 621 | get_buf[count + 2] = hex_asc_hi(checksum); |
623 | get_buf[count + 3] = hexchars[checksum & 0xf]; | 622 | get_buf[count + 3] = hex_asc_lo(checksum); |
624 | get_buf[count + 4] = '\0'; | 623 | get_buf[count + 4] = '\0'; |
625 | v2printk("get%i: %s\n", ts.idx, get_buf); | 624 | v2printk("get%i: %s\n", ts.idx, get_buf); |
626 | } | 625 | } |