aboutsummaryrefslogtreecommitdiffstats
path: root/core/load-git.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-17 13:02:25 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-18 09:00:21 -0700
commitf9f4a9c232357c3967394e8f6a64f9aa36430a45 (patch)
tree5a49489115fa788385daff5d42fe936231f352b7 /core/load-git.c
parent47506028ca81be864b4cf2f6b87b8e81d18052bc (diff)
downloadsubsurface-f9f4a9c232357c3967394e8f6a64f9aa36430a45.tar.gz
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>
Diffstat (limited to 'core/load-git.c')
-rw-r--r--core/load-git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/load-git.c b/core/load-git.c
index 9e5924ea1..b7353763f 100644
--- a/core/load-git.c
+++ b/core/load-git.c
@@ -1630,7 +1630,7 @@ static int walk_tree_file(const char *root, const git_tree_entry *entry, struct
dive_trip_t *trip = state->active_trip;
const char *name = git_tree_entry_name(entry);
if (verbose > 1)
- fprintf(stderr, "git load handling file %s\n", name);
+ SSRF_INFO("git load handling file %s\n", name);
switch (*name) {
case '-': case '+':
if (dive)