summaryrefslogtreecommitdiff
path: root/btio
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz-von@nokia.com>2011-03-24 14:09:52 +0200
committerMarcel Holtmann <marcel@holtmann.org>2011-05-27 10:17:05 -0700
commit7aa3e88acdc1a757b84518f4557cd4c54d4f9e5f (patch)
treeb2ffd76968ed6ce506fa724567e9a7c54bca3758 /btio
parentedfe7599996602dfaecc6ce431b72af1da1fac05 (diff)
downloadobexd-7aa3e88acdc1a757b84518f4557cd4c54d4f9e5f.tar.gz
btio: Fix error message when getting SCO connection handle
Error message should indicate the transport correctly which is SCO not RFCOMM.
Diffstat (limited to 'btio')
-rw-r--r--btio/btio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/btio/btio.c b/btio/btio.c
index a2249b7..7c02bfa 100644
--- a/btio/btio.c
+++ b/btio/btio.c
@@ -1000,14 +1000,14 @@ static gboolean sco_get(int sock, GError **err, BtIOOption opt1, va_list args)
break;
case BT_IO_OPT_HANDLE:
if (sco_get_info(sock, &handle, dev_class) < 0) {
- ERROR_FAILED(err, "RFCOMM_CONNINFO", errno);
+ ERROR_FAILED(err, "SCO_CONNINFO", errno);
return FALSE;
}
*(va_arg(args, uint16_t *)) = handle;
break;
case BT_IO_OPT_CLASS:
if (sco_get_info(sock, &handle, dev_class) < 0) {
- ERROR_FAILED(err, "RFCOMM_CONNINFO", errno);
+ ERROR_FAILED(err, "SCO_CONNINFO", errno);
return FALSE;
}
memcpy(va_arg(args, uint8_t *), dev_class, 3);