projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efebdc4
)
btio: Fix error message when getting SCO connection handle
author
Luiz Augusto von Dentz
<luiz.dentz-von@nokia.com>
Thu, 24 Mar 2011 12:09:52 +0000
(14:09 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 27 May 2011 17:12:57 +0000
(10:12 -0700)
Error message should indicate the transport correctly which is SCO
not RFCOMM.
btio/btio.c
patch
|
blob
|
history
diff --git
a/btio/btio.c
b/btio/btio.c
index
d8439e0
..
3f5b69a
100644
(file)
--- 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);