cosmetic debug improvements
Signed-off-by: Andy Green <andy.green@linaro.org>
diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c
index acbf462..7bcc110 100644
--- a/lib/libwebsockets.c
+++ b/lib/libwebsockets.c
@@ -1028,15 +1028,15 @@
sizeof(context->service_buffer), 0);
if (eff_buf.token_len < 0) {
- lwsl_debug("Socket read returned %d\n",
- eff_buf.token_len);
+ lwsl_debug("service_fd read ret = %d, errno = %d\n",
+ eff_buf.token_len, errno);
if (errno != EINTR && errno != EAGAIN)
goto close_and_handled;
n = 0;
goto handled;
}
if (!eff_buf.token_len) {
- lwsl_info("closing connection due to 0 length read\n");
+ lwsl_info("service_fd: closing due to 0 length read\n");
goto close_and_handled;
}
diff --git a/lib/parsers.c b/lib/parsers.c
index 3ff3fbe..f9f078d 100644
--- a/lib/parsers.c
+++ b/lib/parsers.c
@@ -1075,7 +1075,7 @@
buf + n, len - n);
} else
/* rxflow while we were spilling prev rxflow */
- lwsl_info("stalling in existing rxflow buffer");
+ lwsl_info("stalling in existing rxflow buf\n");
return 1;
}