diff mbox series

[09/12] hw/bt: Add some more queue debug

Message ID 1571349205-11067-10-git-send-email-debmc@linux.ibm.com
State Superseded
Headers show
Series ipmi-hiomap: Enablement for Async opal_flash_op's | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (d75e82dbfbb9443efeb3f9a5921ac23605aab469)
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot fail Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present

Commit Message

Deb McLemore Oct. 17, 2019, 9:53 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);