From a5583ffc450aec1d988ccfcbe0690a7b37f17817 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 26 Jun 2015 13:28:52 +0300 Subject: [PATCH] core: Print store_hint in new_link_key_callback This is useful information when debugging because that indicates no-bonding was used so device will remain temporary even though it is paired. --- src/adapter.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/adapter.c b/src/adapter.c index 95b53495c..531f2764a 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -6696,8 +6696,9 @@ static void new_link_key_callback(uint16_t index, uint16_t length, ba2str(&addr->bdaddr, dst); - DBG("hci%u new key for %s type %u pin_len %u", adapter->dev_id, - dst, ev->key.type, ev->key.pin_len); + DBG("hci%u new key for %s type %u pin_len %u store_hint %u", + adapter->dev_id, dst, ev->key.type, ev->key.pin_len, + ev->store_hint); if (ev->key.pin_len > 16) { error("Invalid PIN length (%u) in new_key event", -- 2.47.3