Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 899913f8 authored by Viral Mehta's avatar Viral Mehta Committed by Jean-Baptiste Queru
Browse files

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
parent fdb13f79
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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){