am 3c5581da: merge from open-source master
Merge commit '3c5581da1d58d0b7e3bac0f03d7ec1e63d71b86d'
* commit '3c5581da1d58d0b7e3bac0f03d7ec1e63d71b86d':
print msg.command in human-readable format
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 @@
{
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){