kgdb: follow rename pack_hex_byte() to hex_byte_pack()
[linux-2.6.git] / kernel / debug / gdbstub.c
index 3487248..c22d8c2 100644 (file)
@@ -217,7 +217,7 @@ void gdbstub_msg_write(const char *s, int len)
 
                /* Pack in hex chars */
                for (i = 0; i < wcount; i++)
-                       bufptr = pack_hex_byte(bufptr, s[i]);
+                       bufptr = hex_byte_pack(bufptr, s[i]);
                *bufptr = '\0';
 
                /* Move up */
@@ -249,7 +249,7 @@ char *kgdb_mem2hex(char *mem, char *buf, int count)
        if (err)
                return NULL;
        while (count > 0) {
-               buf = pack_hex_byte(buf, *tmp);
+               buf = hex_byte_pack(buf, *tmp);
                tmp++;
                count--;
        }
@@ -411,14 +411,14 @@ static char *pack_threadid(char *pkt, unsigned char *id)
        limit = id + (BUF_THREAD_ID_SIZE / 2);
        while (id < limit) {
                if (!lzero || *id != 0) {
-                       pkt = pack_hex_byte(pkt, *id);
+                       pkt = hex_byte_pack(pkt, *id);
                        lzero = 0;
                }
                id++;
        }
 
        if (lzero)
-               pkt = pack_hex_byte(pkt, 0);
+               pkt = hex_byte_pack(pkt, 0);
 
        return pkt;
 }
@@ -486,7 +486,7 @@ static void gdb_cmd_status(struct kgdb_state *ks)
        dbg_remove_all_break();
 
        remcom_out_buffer[0] = 'S';
-       pack_hex_byte(&remcom_out_buffer[1], ks->signo);
+       hex_byte_pack(&remcom_out_buffer[1], ks->signo);
 }
 
 static void gdb_get_regs_helper(struct kgdb_state *ks)
@@ -954,7 +954,7 @@ int gdb_serial_stub(struct kgdb_state *ks)
                /* Reply to host that an exception has occurred */
                ptr = remcom_out_buffer;
                *ptr++ = 'T';
-               ptr = pack_hex_byte(ptr, ks->signo);
+               ptr = hex_byte_pack(ptr, ks->signo);
                ptr += strlen(strcpy(ptr, "thread:"));
                int_to_threadref(thref, shadow_pid(current->pid));
                ptr = pack_threadid(ptr, thref);