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:12:57 -0700
commit8a7725492158edf6442f857cb529a68f47821785 (patch)
treeff532281ca96835b843e6948317cf5edd7cd3661 /btio
parentefebdc4ca5554b4e1b7d762ce150acd4d6aa85fb (diff)
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 d8439e09..3f5b69ad 100644
--- a/btio/btio.c
+++ b/btio/btio.c
@@ -1020,14 +1020,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);