diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-05-28 13:49:56 -0400 |
---|---|---|
committer | Jason Wessel <jason.wessel@windriver.com> | 2008-05-28 13:49:56 -0400 |
commit | 827e609b4581282b98bdf7666f6e93ff1bd1a63e (patch) | |
tree | 52b998e4204e77eb7a0d662f7ff04460d074164c /drivers/misc/kgdbts.c | |
parent | 0a2ce2ffc358da96792d514c1024b72c52be9cc1 (diff) |
kgdb: use common ascii helpers and put_unaligned_be32 helper
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
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 | } |