summaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
authorViral Mehta <viral.vkm@gmail.com>2010-06-16 18:41:28 +0530
committerJean-Baptiste Queru <jbq@google.com>2010-07-19 15:28:22 -0700
commit899913f8168b54e00971c0e8d4ae16d06a4651fe (patch)
treecbc1b394434722a6c374f94dae626fad1539d7ca /adb
parentfdb13f793742bd981f45333f056e4baa5281e4b5 (diff)
downloadsystem_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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/adb/adb.c b/adb/adb.c
index 95dc001..ee78688 100644
--- a/adb/adb.c
+++ b/adb/adb.c
@@ -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){