Browse Source

bluetooth: host: ecc: Change log level debug

This commit changes log level for already registered callback from
warning to debug as this is cause unnecessary noise and doesn't indicate
actual issue. Caller gets a certain error code for this case which can
be handled properly.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
pull/86056/head
Pavel Vasilyev 4 months ago committed by Benjamin Cabé
parent
commit
886fabaf87
  1. 2
      subsys/bluetooth/host/ecc.c

2
subsys/bluetooth/host/ecc.c

@ -265,7 +265,7 @@ int bt_pub_key_gen(struct bt_pub_key_cb *new_cb) @@ -265,7 +265,7 @@ int bt_pub_key_gen(struct bt_pub_key_cb *new_cb)
SYS_SLIST_FOR_EACH_CONTAINER(&pub_key_cb_slist, cb, node) {
if (cb == new_cb) {
LOG_WRN("Callback already registered");
LOG_DBG("Callback already registered");
return -EALREADY;
}
}

Loading…
Cancel
Save