summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-03-14 18:05:42 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-03-14 18:08:26 -0700
commitf4f791ffbdd281af48aae610bf88ef5fd6ae2ac9 (patch)
tree480c569f8e350a419bfd15832b20a16dcf7809b3
parentbf9460e55e517c52bc3ad32e7423a99121de4ffe (diff)
downloadsubsurface-f4f791ffbdd281af48aae610bf88ef5fd6ae2ac9.tar.gz
Add verbose debug output to parse_manual_file
This way it's easier to figure out which arguments to use when creating tests. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--file.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/file.c b/file.c
index 0a5fd7bf8..cf25705c5 100644
--- a/file.c
+++ b/file.c
@@ -1002,8 +1002,19 @@ int parse_seabear_csv_file(const char *filename, int timef, int depthf, int temp
return ret;
}
-int parse_manual_file(const char *filename, int sepidx, int units, int dateformat, int durationformat, int numberf, int datef, int timef, int durationf, int locationf, int gpsf, int maxdepthf, int meandepthf, int divemasterf, int buddyf, int notesf, int weightf, int tagsf, int cylsizef, int startpresf, int endpresf, int o2f, int hef, int airtempf, int watertempf)
+int parse_manual_file(const char *filename, int sepidx, int units, int dateformat, int durationformat,
+ int numberf, int datef, int timef, int durationf, int locationf, int gpsf, int maxdepthf, int meandepthf,
+ int divemasterf, int buddyf, int notesf, int weightf, int tagsf, int cylsizef, int startpresf, int endpresf,
+ int o2f, int hef, int airtempf, int watertempf)
{
+ if (verbose > 4) {
+ fprintf(stderr, "filename %s, sepidx %d, units %d, dateformat %d, durationformat %d\n", filename, sepidx, units, dateformat, durationformat);
+ fprintf(stderr, "numberf %d, datef %d, timef %d, durationf %d, locationf %d, gpsf %d, maxdepthf %d, meandepthf %d\n", numberf, datef, timef, durationf, locationf, gpsf, maxdepthf, meandepthf);
+ fprintf(stderr, "divemasterf %d, buddyf %d, notesf %d, weightf %d, tagsf %d, cylsizef %d, startpresf %d, endpresf %d\n", divemasterf, buddyf, notesf, weightf, tagsf, cylsizef, startpresf, endpresf);
+ fprintf(stderr, "o2f %d, hef %d, airtempf %d, watertempf %d\n", o2f, hef, airtempf, watertempf);
+ } else {
+ fprintf(stderr, "verbose %d\n", verbose);
+ }
struct memblock mem;
int pnr = 0;
char *params[53];