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

Deb McLemore debmc at linux.ibm.com
Tue Jan 7 06:21:43 AEDT 2020


Enable some more BT_QUEUE_DEBUG.

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

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);
-- 
1.8.3.1



More information about the Skiboot mailing list