From: Johan Hedberg Date: Thu, 6 Jun 2013 01:52:54 +0000 (+0300) Subject: core: Add logging of default agent changes X-Git-Tag: android-x86-4.4-r3~8044 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=1a651b9709c0670087b7df733840416bf1b3dcfb;p=android-x86%2Fexternal-bluetooth-bluez.git core: Add logging of default agent changes --- diff --git a/src/agent.c b/src/agent.c index 0fde3ef3f..b9e6e8c79 100644 --- a/src/agent.c +++ b/src/agent.c @@ -158,6 +158,11 @@ static void set_default_agent(struct agent *agent) if (default_agent == agent) return; + if (agent) + DBG("Default agent set to %s %s", agent->owner, agent->path); + else + DBG("Default agent cleared"); + default_agent = agent; adapter_foreach(set_io_cap, agent);