summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core.c b/src/core.c
index bb76df0..05e3bc1 100644
--- a/src/core.c
+++ b/src/core.c
@@ -180,13 +180,15 @@ static int og_agent_state_recv_hdr_rest(struct og_client *cli)
ptr = strstr(cli->buf, "X-Sequence: ");
if (ptr) {
if (sscanf(ptr, "X-Sequence: %i[^\r\n]", &seq) != 1) {
- syslog(LOG_ERR, "Invalid sequence value from client %s. Payload:\n%s",
+ syslog(LOG_ERR, "Invalid sequence value from client %s.\n"
+ "Payload:\n%s",
inet_ntoa(cli->addr.sin_addr), cli->buf);
return -1;
}
if (cli->seq != 0 && cli->seq != seq) {
- syslog(LOG_ERR, "Unexpected sequence %u from client %s, expecting %u.",
- seq, inet_ntoa(cli->addr.sin_addr), cli->seq);
+ syslog(LOG_ERR, "Unexpected sequence %u from client %s, expecting %u.\n"
+ "Payload:\n%s",
+ seq, inet_ntoa(cli->addr.sin_addr), cli->seq, cli->buf);
return -1;
}
}