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:
Berthold Stoeger 2018-06-16 10:50:30 +02:00 committed by Dirk Hohndel
parent c64f421006
commit 3932c97af7

View file

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