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:
committed by
Jason Wessel
parent
0a2ce2ffc3
commit
827e609b45
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user