mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: replace fprintf to stderr by report_info()
Let's try to unify debugging output! Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
b097c0a44f
commit
da7ea17b66
29 changed files with 171 additions and 170 deletions
|
@ -6,6 +6,7 @@
|
|||
#include "divesite.h"
|
||||
#include "dive.h"
|
||||
#include "divelog.h"
|
||||
#include "errorhelper.h"
|
||||
#include "file.h"
|
||||
#include "sample.h"
|
||||
#include "strndup.h"
|
||||
|
@ -279,11 +280,11 @@ static void parse_dives(int log_version, const unsigned char *buf, unsigned int
|
|||
}
|
||||
|
||||
if (sample_count == 0) {
|
||||
fprintf(stderr, "DEBUG: sample count 0 - terminating parser\n");
|
||||
report_info("DEBUG: sample count 0 - terminating parser");
|
||||
break;
|
||||
}
|
||||
if (ptr + sample_count * 4 + 4 > buf_size) {
|
||||
fprintf(stderr, "DEBUG: BOF - terminating parser\n");
|
||||
report_info("DEBUG: BOF - terminating parser");
|
||||
break;
|
||||
}
|
||||
// we aren't using the start_cns, dive_mode, and algorithm, yet
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue