diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2011-10-31 20:12:51 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-31 20:30:56 -0400 |
commit | 50e1499f468fd74c6db95deb2e1e6bfee578ae70 (patch) | |
tree | 0b34eb53c9b164cd2f3562cdef1207b814ac26d8 /arch/mn10300 | |
parent | 55036ba76b2d2fd53b5c00993fcec5ed56e83922 (diff) |
kgdb: follow rename pack_hex_byte() to hex_byte_pack()
There is no functional change.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
Cc: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mn10300')
-rw-r--r-- | arch/mn10300/kernel/gdb-stub.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/arch/mn10300/kernel/gdb-stub.c b/arch/mn10300/kernel/gdb-stub.c index 538266b2c9bc..522eb8a9b60d 100644 --- a/arch/mn10300/kernel/gdb-stub.c +++ b/arch/mn10300/kernel/gdb-stub.c | |||
@@ -798,7 +798,7 @@ unsigned char *mem2hex(const void *_mem, char *buf, int count, int may_fault) | |||
798 | if ((u32) mem & 1 && count >= 1) { | 798 | if ((u32) mem & 1 && count >= 1) { |
799 | if (gdbstub_read_byte(mem, ch) != 0) | 799 | if (gdbstub_read_byte(mem, ch) != 0) |
800 | return 0; | 800 | return 0; |
801 | buf = pack_hex_byte(buf, ch[0]); | 801 | buf = hex_byte_pack(buf, ch[0]); |
802 | mem++; | 802 | mem++; |
803 | count--; | 803 | count--; |
804 | } | 804 | } |
@@ -806,8 +806,8 @@ unsigned char *mem2hex(const void *_mem, char *buf, int count, int may_fault) | |||
806 | if ((u32) mem & 3 && count >= 2) { | 806 | if ((u32) mem & 3 && count >= 2) { |
807 | if (gdbstub_read_word(mem, ch) != 0) | 807 | if (gdbstub_read_word(mem, ch) != 0) |
808 | return 0; | 808 | return 0; |
809 | buf = pack_hex_byte(buf, ch[0]); | 809 | buf = hex_byte_pack(buf, ch[0]); |
810 | buf = pack_hex_byte(buf, ch[1]); | 810 | buf = hex_byte_pack(buf, ch[1]); |
811 | mem += 2; | 811 | mem += 2; |
812 | count -= 2; | 812 | count -= 2; |
813 | } | 813 | } |
@@ -815,10 +815,10 @@ unsigned char *mem2hex(const void *_mem, char *buf, int count, int may_fault) | |||
815 | while (count >= 4) { | 815 | while (count >= 4) { |
816 | if (gdbstub_read_dword(mem, ch) != 0) | 816 | if (gdbstub_read_dword(mem, ch) != 0) |
817 | return 0; | 817 | return 0; |
818 | buf = pack_hex_byte(buf, ch[0]); | 818 | buf = hex_byte_pack(buf, ch[0]); |
819 | buf = pack_hex_byte(buf, ch[1]); | 819 | buf = hex_byte_pack(buf, ch[1]); |
820 | buf = pack_hex_byte(buf, ch[2]); | 820 | buf = hex_byte_pack(buf, ch[2]); |
821 | buf = pack_hex_byte(buf, ch[3]); | 821 | buf = hex_byte_pack(buf, ch[3]); |
822 | mem += 4; | 822 | mem += 4; |
823 | count -= 4; | 823 | count -= 4; |
824 | } | 824 | } |
@@ -826,8 +826,8 @@ unsigned char *mem2hex(const void *_mem, char *buf, int count, int may_fault) | |||
826 | if (count >= 2) { | 826 | if (count >= 2) { |
827 | if (gdbstub_read_word(mem, ch) != 0) | 827 | if (gdbstub_read_word(mem, ch) != 0) |
828 | return 0; | 828 | return 0; |
829 | buf = pack_hex_byte(buf, ch[0]); | 829 | buf = hex_byte_pack(buf, ch[0]); |
830 | buf = pack_hex_byte(buf, ch[1]); | 830 | buf = hex_byte_pack(buf, ch[1]); |
831 | mem += 2; | 831 | mem += 2; |
832 | count -= 2; | 832 | count -= 2; |
833 | } | 833 | } |
@@ -835,7 +835,7 @@ unsigned char *mem2hex(const void *_mem, char *buf, int count, int may_fault) | |||
835 | if (count >= 1) { | 835 | if (count >= 1) { |
836 | if (gdbstub_read_byte(mem, ch) != 0) | 836 | if (gdbstub_read_byte(mem, ch) != 0) |
837 | return 0; | 837 | return 0; |
838 | buf = pack_hex_byte(buf, ch[0]); | 838 | buf = hex_byte_pack(buf, ch[0]); |
839 | } | 839 | } |
840 | 840 | ||
841 | *buf = 0; | 841 | *buf = 0; |
@@ -1273,13 +1273,13 @@ static int gdbstub(struct pt_regs *regs, enum exception_code excep) | |||
1273 | ptr = mem2hex(title, ptr, sizeof(title) - 1, 0); | 1273 | ptr = mem2hex(title, ptr, sizeof(title) - 1, 0); |
1274 | 1274 | ||
1275 | hx = hex_asc_hi(excep >> 8); | 1275 | hx = hex_asc_hi(excep >> 8); |
1276 | ptr = pack_hex_byte(ptr, hx); | 1276 | ptr = hex_byte_pack(ptr, hx); |
1277 | hx = hex_asc_lo(excep >> 8); | 1277 | hx = hex_asc_lo(excep >> 8); |
1278 | ptr = pack_hex_byte(ptr, hx); | 1278 | ptr = hex_byte_pack(ptr, hx); |
1279 | hx = hex_asc_hi(excep); | 1279 | hx = hex_asc_hi(excep); |
1280 | ptr = pack_hex_byte(ptr, hx); | 1280 | ptr = hex_byte_pack(ptr, hx); |
1281 | hx = hex_asc_lo(excep); | 1281 | hx = hex_asc_lo(excep); |
1282 | ptr = pack_hex_byte(ptr, hx); | 1282 | ptr = hex_byte_pack(ptr, hx); |
1283 | 1283 | ||
1284 | ptr = mem2hex(crlf, ptr, sizeof(crlf) - 1, 0); | 1284 | ptr = mem2hex(crlf, ptr, sizeof(crlf) - 1, 0); |
1285 | *ptr = 0; | 1285 | *ptr = 0; |
@@ -1291,21 +1291,21 @@ static int gdbstub(struct pt_regs *regs, enum exception_code excep) | |||
1291 | ptr = mem2hex(tbcberr, ptr, sizeof(tbcberr) - 1, 0); | 1291 | ptr = mem2hex(tbcberr, ptr, sizeof(tbcberr) - 1, 0); |
1292 | 1292 | ||
1293 | hx = hex_asc_hi(bcberr >> 24); | 1293 | hx = hex_asc_hi(bcberr >> 24); |
1294 | ptr = pack_hex_byte(ptr, hx); | 1294 | ptr = hex_byte_pack(ptr, hx); |
1295 | hx = hex_asc_lo(bcberr >> 24); | 1295 | hx = hex_asc_lo(bcberr >> 24); |
1296 | ptr = pack_hex_byte(ptr, hx); | 1296 | ptr = hex_byte_pack(ptr, hx); |
1297 | hx = hex_asc_hi(bcberr >> 16); | 1297 | hx = hex_asc_hi(bcberr >> 16); |
1298 | ptr = pack_hex_byte(ptr, hx); | 1298 | ptr = hex_byte_pack(ptr, hx); |
1299 | hx = hex_asc_lo(bcberr >> 16); | 1299 | hx = hex_asc_lo(bcberr >> 16); |
1300 | ptr = pack_hex_byte(ptr, hx); | 1300 | ptr = hex_byte_pack(ptr, hx); |
1301 | hx = hex_asc_hi(bcberr >> 8); | 1301 | hx = hex_asc_hi(bcberr >> 8); |
1302 | ptr = pack_hex_byte(ptr, hx); | 1302 | ptr = hex_byte_pack(ptr, hx); |
1303 | hx = hex_asc_lo(bcberr >> 8); | 1303 | hx = hex_asc_lo(bcberr >> 8); |
1304 | ptr = pack_hex_byte(ptr, hx); | 1304 | ptr = hex_byte_pack(ptr, hx); |
1305 | hx = hex_asc_hi(bcberr); | 1305 | hx = hex_asc_hi(bcberr); |
1306 | ptr = pack_hex_byte(ptr, hx); | 1306 | ptr = hex_byte_pack(ptr, hx); |
1307 | hx = hex_asc_lo(bcberr); | 1307 | hx = hex_asc_lo(bcberr); |
1308 | ptr = pack_hex_byte(ptr, hx); | 1308 | ptr = hex_byte_pack(ptr, hx); |
1309 | 1309 | ||
1310 | ptr = mem2hex(crlf, ptr, sizeof(crlf) - 1, 0); | 1310 | ptr = mem2hex(crlf, ptr, sizeof(crlf) - 1, 0); |
1311 | *ptr = 0; | 1311 | *ptr = 0; |
@@ -1321,12 +1321,12 @@ static int gdbstub(struct pt_regs *regs, enum exception_code excep) | |||
1321 | * Send trap type (converted to signal) | 1321 | * Send trap type (converted to signal) |
1322 | */ | 1322 | */ |
1323 | *ptr++ = 'T'; | 1323 | *ptr++ = 'T'; |
1324 | ptr = pack_hex_byte(ptr, sigval); | 1324 | ptr = hex_byte_pack(ptr, sigval); |
1325 | 1325 | ||
1326 | /* | 1326 | /* |
1327 | * Send Error PC | 1327 | * Send Error PC |
1328 | */ | 1328 | */ |
1329 | ptr = pack_hex_byte(ptr, GDB_REGID_PC); | 1329 | ptr = hex_byte_pack(ptr, GDB_REGID_PC); |
1330 | *ptr++ = ':'; | 1330 | *ptr++ = ':'; |
1331 | ptr = mem2hex(®s->pc, ptr, 4, 0); | 1331 | ptr = mem2hex(®s->pc, ptr, 4, 0); |
1332 | *ptr++ = ';'; | 1332 | *ptr++ = ';'; |
@@ -1334,7 +1334,7 @@ static int gdbstub(struct pt_regs *regs, enum exception_code excep) | |||
1334 | /* | 1334 | /* |
1335 | * Send frame pointer | 1335 | * Send frame pointer |
1336 | */ | 1336 | */ |
1337 | ptr = pack_hex_byte(ptr, GDB_REGID_FP); | 1337 | ptr = hex_byte_pack(ptr, GDB_REGID_FP); |
1338 | *ptr++ = ':'; | 1338 | *ptr++ = ':'; |
1339 | ptr = mem2hex(®s->a3, ptr, 4, 0); | 1339 | ptr = mem2hex(®s->a3, ptr, 4, 0); |
1340 | *ptr++ = ';'; | 1340 | *ptr++ = ';'; |
@@ -1343,7 +1343,7 @@ static int gdbstub(struct pt_regs *regs, enum exception_code excep) | |||
1343 | * Send stack pointer | 1343 | * Send stack pointer |
1344 | */ | 1344 | */ |
1345 | ssp = (unsigned long) (regs + 1); | 1345 | ssp = (unsigned long) (regs + 1); |
1346 | ptr = pack_hex_byte(ptr, GDB_REGID_SP); | 1346 | ptr = hex_byte_pack(ptr, GDB_REGID_SP); |
1347 | *ptr++ = ':'; | 1347 | *ptr++ = ':'; |
1348 | ptr = mem2hex(&ssp, ptr, 4, 0); | 1348 | ptr = mem2hex(&ssp, ptr, 4, 0); |
1349 | *ptr++ = ';'; | 1349 | *ptr++ = ';'; |