diff options
author | Viral Mehta <viral.vkm@gmail.com> | 2010-06-16 18:41:28 +0530 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2010-07-19 15:28:22 -0700 |
commit | 899913f8168b54e00971c0e8d4ae16d06a4651fe (patch) | |
tree | cbc1b394434722a6c374f94dae626fad1539d7ca /adb | |
parent | fdb13f793742bd981f45333f056e4baa5281e4b5 (diff) | |
download | system_core-899913f8168b54e00971c0e8d4ae16d06a4651fe.zip system_core-899913f8168b54e00971c0e8d4ae16d06a4651fe.tar.gz system_core-899913f8168b54e00971c0e8d4ae16d06a4651fe.tar.bz2 |
print msg.command in human-readable format
to print msg.command as some odd decimal number is just not helping in debugging;
instead print msg.command as a string
Change-Id: Id1ec770c20c86b8bdae40a0262bf4b63c0213b0a
Diffstat (limited to 'adb')
-rw-r--r-- | adb/adb.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -302,8 +302,10 @@ void handle_packet(apacket *p, atransport *t) { asocket *s; - D("handle_packet() %d\n", p->msg.command); - + D("handle_packet() %c%c%c%c\n", ((char*) (&(p->msg.command)))[0], + ((char*) (&(p->msg.command)))[1], + ((char*) (&(p->msg.command)))[2], + ((char*) (&(p->msg.command)))[3]); print_packet("recv", p); switch(p->msg.command){ |