summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-07-22 18:06:37 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-22 11:54:12 -0700
commitfed9aa80861b6617302e29faf2f0bd48914fe7df (patch)
tree4c7f5233af32ed7f3594a5b1f1b315d779230748 /file.c
parent2192443a1ef3e8fefc8cad832d91829216f2e01e (diff)
downloadsubsurface-fed9aa80861b6617302e29faf2f0bd48914fe7df.tar.gz
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>
Diffstat (limited to 'file.c')
-rw-r--r--file.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/file.c b/file.c
index 27c1a2489..f7f98333f 100644
--- a/file.c
+++ b/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)