diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-03-14 18:05:42 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-03-14 18:08:26 -0700 |
commit | f4f791ffbdd281af48aae610bf88ef5fd6ae2ac9 (patch) | |
tree | 480c569f8e350a419bfd15832b20a16dcf7809b3 /file.c | |
parent | bf9460e55e517c52bc3ad32e7423a99121de4ffe (diff) | |
download | subsurface-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>
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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]; |