common: Dump received data if *received len* is under 4K.

(not the buffer size!)
This commit is contained in:
Solomon Peachy 2021-05-14 06:29:29 -04:00
parent afbff6b5b9
commit 5cbceb686c
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ int read_data(struct dyesub_connection *conn, uint8_t *buf, int buflen, int *rea
DEBUG("Received %d bytes from printer\n", *readlen);
}
if ((dyesub_debug > 1 && buflen < 4096) ||
if ((dyesub_debug > 1 && *readlen < 4096) ||
dyesub_debug > 2) {
int i = *readlen;