diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-11-21 21:42:55 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-11-21 21:42:55 -0800 |
commit | 74dd93c6a4cbc3a76af6fc4f467c4f602dd49002 (patch) | |
tree | d669406ab55b20ef9a962388cf66ff8767bdb33d | |
parent | acb8a0e118cd52a425163230610ece0ce29bae8b (diff) | |
download | subsurface-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>
-rw-r--r-- | uemis.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |