mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Include debug printout for easier manual testing
When Subsurface is run with high enough verbosity level, generate command line to test Seabear import manually with xsltproc. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2192443a1e
commit
fed9aa8086
1 changed files with 13 additions and 0 deletions
13
file.c
13
file.c
|
@ -1052,6 +1052,19 @@ int parse_seabear_csv_file(const char *filename, int timef, int depthf, int temp
|
|||
if (try_to_xslt_open_csv(filename, &mem, csvtemplate))
|
||||
return -1;
|
||||
|
||||
/*
|
||||
* Lets print command line for manual testing with xsltproc if
|
||||
* verbosity level is high enough. The printed line needs the
|
||||
* input file added as last parameter.
|
||||
*/
|
||||
|
||||
if (verbose >= 2) {
|
||||
fprintf(stderr, "xsltproc ");
|
||||
for (i=0; params[i]; i+=2)
|
||||
fprintf(stderr, "--stringparam %s %s ", params[i], params[i+1]);
|
||||
fprintf(stderr, "xslt/csv2xml.xslt\n");
|
||||
}
|
||||
|
||||
ret = parse_xml_buffer(filename, mem.buffer, mem.size, &dive_table, (const char **)params);
|
||||
free(mem.buffer);
|
||||
for (i = 0; params[i]; i += 2)
|
||||
|
|
Loading…
Reference in a new issue