ipmi:sm: Print current state when the state is invalid
authorXianting Tian <tian.xianting@h3c.com>
Tue, 15 Sep 2020 07:44:41 +0000 (15:44 +0800)
committerCorey Minyard <cminyard@mvista.com>
Tue, 15 Sep 2020 14:46:20 +0000 (09:46 -0500)
commitc2b1e76d8c91166ca5f7aa8df02d67b619e24dc3
tree1b73006ba1ffb13db8d0cd6a6a49f3bb32e0c33b
parent81e7571ea35e2b8b74b777ac8484818c8a984ea9
ipmi:sm: Print current state when the state is invalid

Print current state before returning IPMI_NOT_IN_MY_STATE_ERR so we can
know where this issue is coming from and possibly fix the state machine.

Signed-off-by: Xianting Tian <tian.xianting@h3c.com>
Message-Id: <20200915074441.4090-1-tian.xianting@h3c.com>
[Converted printk() to pr_xxx().]
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_bt_sm.c
drivers/char/ipmi/ipmi_kcs_sm.c
drivers/char/ipmi/ipmi_smic_sm.c