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
|
@ -4,6 +4,7 @@
|
|||
#include "selection.h"
|
||||
#include "divelist.h"
|
||||
#include "divelog.h"
|
||||
#include "errorhelper.h"
|
||||
#include "trip.h"
|
||||
#include "subsurface-qt/divelistnotifier.h"
|
||||
|
||||
|
@ -318,6 +319,6 @@ extern "C" struct dive_trip *single_selected_trip()
|
|||
if (divelog.trips->trips[i]->selected)
|
||||
return divelog.trips->trips[i];
|
||||
}
|
||||
fprintf(stderr, "warning: found no selected trip even though one should be selected\n");
|
||||
report_info("warning: found no selected trip even though one should be selected");
|
||||
return NULL; // shouldn't happen
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue