summaryrefslogtreecommitdiffstats
path: root/uemis.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-21 21:42:55 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-21 21:42:55 -0800
commit74dd93c6a4cbc3a76af6fc4f467c4f602dd49002 (patch)
treed669406ab55b20ef9a962388cf66ff8767bdb33d /uemis.c
parentacb8a0e118cd52a425163230610ece0ce29bae8b (diff)
downloadsubsurface-74dd93c6a4cbc3a76af6fc4f467c4f602dd49002.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'uemis.c')
-rw-r--r--uemis.c2
1 files changed, 1 insertions, 1 deletions
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) {