From 6d0f4da7b49fe0fa8bffbca48157a33814155595 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 3 Oct 2012 22:17:15 +0300 Subject: [PATCH] core: Add specific error to profile connect log --- src/device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/device.c b/src/device.c index 3590b7fa6..c659164d6 100644 --- a/src/device.c +++ b/src/device.c @@ -899,7 +899,8 @@ static int connect_next(struct btd_device *dev, btd_profile_cb cb) if (err == 0) return 0; - error("Failed to connect %s", profile->name); + error("Failed to connect %s: %s", profile->name, + strerror(-err)); dev->pending = g_slist_remove(dev->pending, profile); } -- 2.47.3