summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--econpacket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/econpacket.c b/econpacket.c
index adddd8d..7160980 100644
--- a/econpacket.c
+++ b/econpacket.c
@@ -101,6 +101,8 @@ epkt_read(int fd, struct econ_packet *pkt)
return -1;
return 0;
}
+ fprintf(stderr, "epkt_read: len.u: %zd, cmd: %d, datasize: %d\n",
+ len.u, pkt->hdr.commandID, pkt->hdr.datasize);
if (len.u != sizeof(struct econ_header) + pkt->hdr.datasize) {
fprintf(stderr, "packet has invalid datasize\n");