diff mbox series

[v3,08/13] hw/bt: Add some more queue debug

Message ID 1578338508-13424-9-git-send-email-debmc@linux.ibm.com
State New, archived
Headers show
Series ipmi-hiomap: Enablement for Async opal_flash_op's | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch warning Failed to apply on branch master (d75e82dbfbb9443efeb3f9a5921ac23605aab469)
snowpatch_ozlabs/apply_patch fail Failed to apply to any branch

Commit Message

Deb McLemore Jan. 6, 2020, 7:21 p.m. UTC
Enable some more BT_QUEUE_DEBUG.

Signed-off-by: Deb McLemore <debmc@linux.ibm.com>
---
 hw/bt.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/hw/bt.c b/hw/bt.c
index 2f3143f..824a1f2 100644
--- a/hw/bt.c
+++ b/hw/bt.c
@@ -463,8 +463,12 @@  static void bt_send_and_unlock(void)
 	 * Timeouts and retries happen in bt_expire_old_msg()
 	 * called from bt_poll()
 	 */
-	if (bt_idle() && inflight_bt_msg->send_count == 0)
+	if (bt_idle() && inflight_bt_msg->send_count == 0) {
+#if BT_QUEUE_DEBUG
+		BT_Q_DBG(inflight_bt_msg, "Sending inflight_bt_msg NOW");
+#endif
 		bt_send_msg(inflight_bt_msg);
+	}
 
 out_unlock:
 	unlock(&bt.lock);