mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
debug output: ensure our debug output is captured on Android
I would have bet money that Android used to send stderr to the logcat log, but apparently it doesn't (anymore?). So in order to be able to have a chance to debug weird cloud storage issues on Android, let's do some wholesale replacement of fprintf(stderr,...) with our own version of the INFO macro that we long ago borrowed from libdivecomputer (and rename it to ensure we don't have a conflict there). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
47506028ca
commit
f9f4a9c232
8 changed files with 64 additions and 61 deletions
|
|
@ -229,7 +229,7 @@ QStringList DiveSiteSortedModel::allSiteNames() const
|
|||
// (more precisely: the core has more sites than the model is aware of),
|
||||
// we might get an invalid index.
|
||||
if (idx < 0 || idx > dive_site_table.nr) {
|
||||
fprintf(stderr, "DiveSiteSortedModel::allSiteNames(): invalid index");
|
||||
SSRF_INFO("DiveSiteSortedModel::allSiteNames(): invalid index");
|
||||
continue;
|
||||
}
|
||||
locationNames << QString(dive_site_table.dive_sites[idx]->name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue