From 7487d5b922ddc68d43516a20e211b061e8986e2e Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 16 Jul 2013 13:53:59 +0300 Subject: [PATCH] core: Add debug log for attrib disconnection reason --- src/device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/device.c b/src/device.c index a46ee0695..f854ed9e4 100644 --- a/src/device.c +++ b/src/device.c @@ -3075,6 +3075,8 @@ static gboolean attrib_disconnected_cb(GIOChannel *io, GIOCondition cond, len = sizeof(err); getsockopt(sock, SOL_SOCKET, SO_ERROR, &err, &len); + DBG("%s (%d)", strerror(err), err); + g_slist_foreach(device->attios, attio_disconnected, NULL); if (!device_get_auto_connect(device)) { -- 2.47.3