Thread (3 messages) flat view 3 messages, 2 authors, 2011-03-25
STALE5611d

[PATCH] Fix error message when getting SCO connection handle

From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Date: 2011-03-24 12:09:52
Subsystem: the rest · Maintainer: Linus Torvalds

From: Luiz Augusto von Dentz <redacted>

Error message should indicate the transport correctly which is SCO
not RFCOMM.
---
 btio/btio.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/btio/btio.c b/btio/btio.c
index d8439e0..3f5b69a 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);
-- 
1.7.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help