aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2015-04-23 13:32:59 -0500
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-05-11 16:33:52 +1000
commitf7c8f35ce7328f1b7e0181abf5c6233747570694 (patch)
tree581928ca54da9d305fdac44c1f11358b515bdbb4
parent4b73013638c6046249ea81cdfc6d259c183366e4 (diff)
downloadskiboot-f7c8f35ce7328f1b7e0181abf5c6233747570694.zip
skiboot-f7c8f35ce7328f1b7e0181abf5c6233747570694.tar.gz
skiboot-f7c8f35ce7328f1b7e0181abf5c6233747570694.tar.bz2
hw/bt: Add netfn to BT_ERR message
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@us.ibm.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--hw/bt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/bt.c b/hw/bt.c
index 8bb44cd..15d3ebc 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,