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>
This commit is contained in:
Anton Lundin 2015-05-27 21:19:12 +02:00 committed by Dirk Hohndel
parent 4124052b38
commit 4321ef1d88
3 changed files with 91 additions and 2 deletions

View file

@ -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" };