[Skiboot] [PATCH] hw/bt: Add netfn to BT_ERR message

Jeremy Kerr jk at ozlabs.org
Fri Apr 24 04:32:59 AEST 2015


It's not too useful to print the command without the netfn, so add
this into the BT_ERR macro.

Reported by: Nick Bofferding <bofferdn at us.ibm.com>
Signed-off-by: Jeremy Kerr <jk at ozlabs.org>

---
 hw/bt.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/hw/bt.c b/hw/bt.c
index 7bf1b2f..84afc82 100644
--- a/hw/bt.c
+++ b/hw/bt.c
@@ -72,8 +72,9 @@
 #define BT_QUEUE_DEBUG 0
 
 #define BT_ERR(msg, fmt, args...) \
-	do { prerror("BT seq 0x%02x cmd 0x%02x: " fmt "\n", \
-	     (msg)->seq, (msg)->ipmi_msg.cmd, ##args);  } while(0)
+	do { prerror("BT seq 0x%02x netfn 0x%02x cmd 0x%02x: " fmt "\n", \
+	     (msg)->seq, (msg)->ipmi_msg.netfn, (msg)->ipmi_msg.cmd, ##args); \
+	} while(0)
 
 enum bt_states {
 	BT_STATE_IDLE = 0,


More information about the Skiboot mailing list