From 74dd93c6a4cbc3a76af6fc4f467c4f602dd49002 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 21 Nov 2014 21:42:55 -0800 Subject: Improve Uemis debug output for short data blocks It's useful to know just how short the read was when trying to figure out what went wrong. Signed-off-by: Dirk Hohndel --- uemis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uemis.c') diff --git a/uemis.c b/uemis.c index de73e1f9b..686dc8f8f 100644 --- a/uemis.c +++ b/uemis.c @@ -82,7 +82,7 @@ static int uemis_convert_base64(char *base64, uint8_t **data) datalen = (len / 4 + 1) * 3; if (datalen < 0x123 + 0x25) { /* less than header + 1 sample??? */ - fprintf(stderr, "suspiciously short data block\n"); + fprintf(stderr, "suspiciously short data block %d\n", datalen); } *data = malloc(datalen); if (!*data) { -- cgit v1.2.3-70-g09d2