From 76ce410e7fdac1e3858378f15bb441b2e4cb0734 Mon Sep 17 00:00:00 2001 From: Zach Johnson <zachoverflow@google.com> Date: Wed, 28 Jan 2015 11:16:15 -0800 Subject: [PATCH] Add sniff changed log statement on the mode changed event This will ensure we log accordingly when the other end decides to put the connection into sniff mode. --- system/stack/btm/btm_pm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/system/stack/btm/btm_pm.c b/system/stack/btm/btm_pm.c index 751cf99b394..1f7f599323e 100644 --- a/system/stack/btm/btm_pm.c +++ b/system/stack/btm/btm_pm.c @@ -801,9 +801,8 @@ void btm_pm_proc_mode_change (UINT8 hci_status, UINT16 hci_handle, UINT8 mode, U old_state = p_cb->state; p_cb->state = mode; p_cb->interval = interval; -#if BTM_PM_DEBUG == TRUE - BTM_TRACE_DEBUG( "btm_pm_proc_mode_change new state:0x%x (old:0x%x)", p_cb->state, old_state); -#endif // BTM_PM_DEBUG + + LOG_DEBUG("%s switched from %s to %s.", __func__, mode_to_string(old_state), mode_to_string(p_cb->state)); if ((p_lcb = l2cu_find_lcb_by_bd_addr(p->remote_addr, BT_TRANSPORT_BR_EDR)) != NULL) { -- GitLab