mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
947065d995
commit
e531c04b8d
1 changed files with 4 additions and 6 deletions
|
@ -162,10 +162,9 @@ int parse_dan_format(const char *filename, char **params, int pnr)
|
||||||
/* Search for the next line */
|
/* Search for the next line */
|
||||||
if (iter)
|
if (iter)
|
||||||
iter = parse_dan_new_line(iter, NL);
|
iter = parse_dan_new_line(iter, NL);
|
||||||
if (!iter) {
|
if (!iter)
|
||||||
fprintf(stderr, "DEBUG: No new line found");
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
|
||||||
/* We got a trailer, no samples on this dive */
|
/* We got a trailer, no samples on this dive */
|
||||||
if (strncmp(iter, "ZDT", 3) == 0) {
|
if (strncmp(iter, "ZDT", 3) == 0) {
|
||||||
end_ptr = iter - (char *)mem.buffer;
|
end_ptr = iter - (char *)mem.buffer;
|
||||||
|
@ -204,10 +203,9 @@ int parse_dan_format(const char *filename, char **params, int pnr)
|
||||||
|
|
||||||
if (ptr)
|
if (ptr)
|
||||||
ptr = parse_dan_new_line(ptr, NL);
|
ptr = parse_dan_new_line(ptr, NL);
|
||||||
if (!ptr) {
|
if (!ptr)
|
||||||
fprintf(stderr, "DEBUG: Data corrupt");
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
|
||||||
end_ptr = ptr - (char *)mem.buffer;
|
end_ptr = ptr - (char *)mem.buffer;
|
||||||
|
|
||||||
/* Copy the current dive data to start of mem_csv buffer */
|
/* Copy the current dive data to start of mem_csv buffer */
|
||||||
|
|
Loading…
Add table
Reference in a new issue