summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-06-16 10:50:30 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-18 06:25:40 +0900
commit3932c97af766e014f42d23df06d347bf7aff6d3e (patch)
tree861fb1edc3a7df4ae23f7a1967d2ebf38619bbeb /core
parentc64f421006a4ecefa5624c33f742eeeef1d47aa2 (diff)
downloadsubsurface-3932c97af766e014f42d23df06d347bf7aff6d3e.tar.gz
libdc interface: remove debug messages
Don't spill supported transports as error message to the user. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core')
-rw-r--r--core/libdivecomputer.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c
index 3443886b6..499428fc8 100644
--- a/core/libdivecomputer.c
+++ b/core/libdivecomputer.c
@@ -1212,19 +1212,6 @@ char *transport_string[] = {
"BLE"
};
-static char *transport_to_string(int t)
-{
- static char buf[1024];
- buf[0] = '\0';
- for (int i = 0; i < 6; i++) {
- if (t & (1<<i)) {
- strncat(buf, transport_string[i], 1024);
- strncat(buf, " ", 1024);
- }
- }
- return buf;
-}
-
/*
* Get the transports supported by us (as opposed to
* the list of transports supported by a particular
@@ -1264,8 +1251,6 @@ unsigned int get_supported_transports(device_data_t *data)
supported &= ~(DC_TRANSPORT_BLUETOOTH | DC_TRANSPORT_BLE);
}
}
- report_error("get_supported_transports returns");
- report_error(transport_to_string(supported));
return supported;
}
@@ -1277,8 +1262,6 @@ dc_status_t divecomputer_device_open(device_data_t *data)
unsigned int transports, supported;
transports = dc_descriptor_get_transports(descriptor);
- report_error("dc_descriptor_get_transports");
- report_error(transport_to_string(transports));
supported = get_supported_transports(data);
transports &= supported;