summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2016-07-08 10:50:01 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2016-07-13 14:03:45 +0300
commitfc9ccf6154a0c090e641569a9567a40eb1c721f5 (patch)
tree70b9359d3c9256cf354432e174d0f736533c38cf
parentd8c47f1202c7def9d1d58037678885f376a8f76f (diff)
downloadbluez-fc9ccf6154a0c090e641569a9567a40eb1c721f5.tar.gz
core/gatt: Print address type
The code actually listen for ATT connection in both BR/EDR and LE so it shouldn't assume all the connections are LE.
-rw-r--r--src/gatt-database.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gatt-database.c b/src/gatt-database.c
index 09fa1a90a..bf1925b7f 100644
--- a/src/gatt-database.c
+++ b/src/gatt-database.c
@@ -468,8 +468,6 @@ static void connect_cb(GIOChannel *io, GError *gerr, gpointer user_data)
uint8_t dst_type;
bdaddr_t src, dst;
- DBG("New incoming LE ATT connection");
-
if (gerr) {
error("%s", gerr->message);
return;
@@ -485,6 +483,9 @@ static void connect_cb(GIOChannel *io, GError *gerr, gpointer user_data)
return;
}
+ DBG("New incoming %s ATT connection", dst_type == BDADDR_BREDR ?
+ "BR/EDR" : "LE");
+
adapter = adapter_find(&src);
if (!adapter)
return;