summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pjctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pjctl.c b/src/pjctl.c
index d2c1ad2..6b555a0 100644
--- a/src/pjctl.c
+++ b/src/pjctl.c
@@ -245,7 +245,8 @@ handle_data(struct pjctl *pjctl, char *data, int len)
struct queue_command *cmd;
if (len < 8 || len > PJLINK_TERMINATOR) {
- fprintf(stderr, "error: invalid packet length: %d\n", len);
+ fprintf(stderr, "error: invalid packet length: %d: data: %*s\n",
+ len, len, data);
return -1;
}