summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2018-01-07 19:52:38 +0200
committerGravatar mturkia <miika.turkia@gmail.com>2018-01-08 06:06:12 +0200
commite531c04b8dd567a200d622b2914f29343930d3f7 (patch)
tree409197bbb24b1dab4433158ca5925e5f0eae1e41
parent947065d99507102524bf881025f46656c0ba3d30 (diff)
downloadsubsurface-e531c04b8dd567a200d622b2914f29343930d3f7.tar.gz
Remove obsolete error/debug messages
The used parse_dl7_new_line function already prints an error / debug message so these are unnecessary. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
-rw-r--r--core/import-csv.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/core/import-csv.c b/core/import-csv.c
index 439e67a8d..d8c2f0c37 100644
--- a/core/import-csv.c
+++ b/core/import-csv.c
@@ -162,10 +162,9 @@ int parse_dan_format(const char *filename, char **params, int pnr)
/* Search for the next line */
if (iter)
iter = parse_dan_new_line(iter, NL);
- if (!iter) {
- fprintf(stderr, "DEBUG: No new line found");
+ if (!iter)
return -1;
- }
+
/* We got a trailer, no samples on this dive */
if (strncmp(iter, "ZDT", 3) == 0) {
end_ptr = iter - (char *)mem.buffer;
@@ -204,10 +203,9 @@ int parse_dan_format(const char *filename, char **params, int pnr)
if (ptr)
ptr = parse_dan_new_line(ptr, NL);
- if (!ptr) {
- fprintf(stderr, "DEBUG: Data corrupt");
+ if (!ptr)
return -1;
- }
+
end_ptr = ptr - (char *)mem.buffer;
/* Copy the current dive data to start of mem_csv buffer */