mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
9724ffc7b2
commit
25501ebae7
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue