summaryrefslogtreecommitdiffstats
path: root/libdivecomputer.c
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2015-05-27 21:19:12 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-27 15:37:43 -0700
commit4321ef1d88d33e8eb2763d7ec54bcb59e21a285e (patch)
treec8cc8666e702213e8555df252e4e1348e8dc75d0 /libdivecomputer.c
parent4124052b38f4c2e2f8bef40ebc74d6bbd35382af (diff)
downloadsubsurface-4321ef1d88d33e8eb2763d7ec54bcb59e21a285e.tar.gz
Enable diagnostic logs from dc configuration
This implements support for writing debug/diagnostic logs when configuring dive computers and upgrading the firmware. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'libdivecomputer.c')
-rw-r--r--libdivecomputer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c
index f07023f88..2522a92fb 100644
--- a/libdivecomputer.c
+++ b/libdivecomputer.c
@@ -874,7 +874,7 @@ static const char *do_device_import(device_data_t *data)
return NULL;
}
-static void
+void
logfunc(dc_context_t *context, dc_loglevel_t loglevel, const char *file, unsigned int line, const char *function, const char *msg, void *userdata)
{
const char *loglevels[] = { "NONE", "ERROR", "WARNING", "INFO", "DEBUG", "ALL" };