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>
This commit is contained in:
Harvey Harrison
2008-05-28 12:49:56 -05:00
committed by Jason Wessel
parent 0a2ce2ffc3
commit 827e609b45
2 changed files with 8 additions and 13 deletions

View File

@@ -119,7 +119,6 @@
} while (0)
#define MAX_CONFIG_LEN 40
static const char hexchars[] = "0123456789abcdef";
static struct kgdb_io kgdbts_io_ops;
static char get_buf[BUFMAX];
static int get_buf_cnt;
@@ -619,8 +618,8 @@ static void fill_get_buf(char *buf)
count++;
}
strcat(get_buf, "#");
get_buf[count + 2] = hexchars[checksum >> 4];
get_buf[count + 3] = hexchars[checksum & 0xf];
get_buf[count + 2] = hex_asc_hi(checksum);
get_buf[count + 3] = hex_asc_lo(checksum);
get_buf[count + 4] = '\0';
v2printk("get%i: %s\n", ts.idx, get_buf);
}