Bluetooth: Use symbolic names for state in debug
Use state_to_string function in debug statements. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:

committed by
Johan Hedberg

parent
20d1803a70
commit
e05dcc3291
@@ -282,7 +282,7 @@ static void hci_conn_timeout(struct work_struct *work)
|
||||
disc_work.work);
|
||||
__u8 reason;
|
||||
|
||||
BT_DBG("conn %p state %d", conn, conn->state);
|
||||
BT_DBG("conn %p state %s", conn, state_to_string(conn->state));
|
||||
|
||||
if (atomic_read(&conn->refcnt))
|
||||
return;
|
||||
|
Reference in New Issue
Block a user