summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-08 14:55:46 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-06 09:26:37 -0800
commitd20f0662b404d1ca68ab40b6c189ef0606aeb176 (patch)
treeb8a756ff5369fca8150668b03045e5e0938c327d
parent00c14055353c5936517942a72fa36f1eda7ede79 (diff)
downloadsubsurface-d20f0662b404d1ca68ab40b6c189ef0606aeb176.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>
-rw-r--r--uemis-downloader.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c
index 2a6e5178c..cb59df6d7 100644
--- a/uemis-downloader.c
+++ b/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;