You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2013/03/25 21:03:00 UTC

svn commit: r1460868 - /qpid/proton/trunk/proton-c/src/codec/codec.c

Author: rhs
Date: Mon Mar 25 20:02:59 2013
New Revision: 1460868

URL: http://svn.apache.org/r1460868
Log:
pretty print the type names in pn_data_dump

Modified:
    qpid/proton/trunk/proton-c/src/codec/codec.c

Modified: qpid/proton/trunk/proton-c/src/codec/codec.c
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/src/codec/codec.c?rev=1460868&r1=1460867&r2=1460868&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/src/codec/codec.c (original)
+++ qpid/proton/trunk/proton-c/src/codec/codec.c Mon Mar 25 20:02:59 2013
@@ -1955,9 +1955,9 @@ void pn_data_dump(pn_data_t *data)
     pn_bytes_t bytes = pn_bytes(1024, buf);
     pn_format_atom(&bytes, node->atom);
     printf("Node %i: prev=%" PN_ZI ", next=%" PN_ZI ", parent=%" PN_ZI ", down=%" PN_ZI 
-           ", children=%" PN_ZI ", type=%i (%s)\n",
-           i + 1, node->prev, node->next, node->parent, node->down, node->children, node->atom.type,
-           buf);
+           ", children=%" PN_ZI ", type=%s (%s)\n",
+           i + 1, node->prev, node->next, node->parent, node->down, node->children,
+           pn_type_name(node->atom.type), buf);
   }
 }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org