diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-11-08 14:55:46 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-08 14:56:28 -0800 |
commit | 25501ebae7ceaade1f96a7cd189b25ecb32e2a4d (patch) | |
tree | d252a676e77ac16f16911c6564140af8a819ce2f /subsurface-core | |
parent | 9724ffc7b2a3ea5f05e1484f98ca54779fb316fc (diff) | |
download | subsurface-25501ebae7ceaade1f96a7cd189b25ecb32e2a4d.tar.gz |
Uemis downloader: print some information on stderr in verbose mode
On the Mac the info on the download dialog isn't shown. So print it on
stderr as well when in verbose mode.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core')
-rw-r--r-- | subsurface-core/uemis-downloader.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/subsurface-core/uemis-downloader.c b/subsurface-core/uemis-downloader.c index 2a6e5178c..cb59df6d7 100644 --- a/subsurface-core/uemis-downloader.c +++ b/subsurface-core/uemis-downloader.c @@ -172,6 +172,8 @@ static void uemis_info(const char *fmt, ...) vsnprintf(buffer, sizeof(buffer), fmt, ap); va_end(ap); progress_bar_text = buffer; + if (verbose) + fprintf(stderr, "Uemis downloader: %s\n", buffer); } static long bytes_available(int file) @@ -1233,6 +1235,8 @@ const char *do_uemis_import(device_data_t *data) param_buff[1] = "notempty"; newmax = uemis_get_divenr(deviceid, force_download); + if (verbose) + fprintf(stderr, "Uemis downloader: start looking at dive nr %s", newmax); first = start = atoi(newmax); dive_to_read = first; |