mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
c64f421006
commit
3932c97af7
1 changed files with 0 additions and 17 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue