diff options
author | Vipin K Parashar <vipin@linux.vnet.ibm.com> | 2016-02-27 02:13:26 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-03-07 14:35:54 +1100 |
commit | 361000f61f3691cc5b970587366f8154610d2771 (patch) | |
tree | a8927194546a3c473846996bf65a82114babd0a8 /core/ipmi.c | |
parent | fe4bf686b88e25f8b74e3f712dadb8ca3ea133a3 (diff) | |
download | skiboot-361000f61f3691cc5b970587366f8154610d2771.zip skiboot-361000f61f3691cc5b970587366f8154610d2771.tar.gz skiboot-361000f61f3691cc5b970587366f8154610d2771.tar.bz2 |
ipmi: Log exact NetFn value in OPAL logs
As per IPMI message format NetFn value in present in first 6 bits
while last 2 bits contain LUN value. This needs to be taken care
while printing NetFn value in OPAL logs which is useful while debugging
fails.
[root@fir01 /]# ipmitool raw 0x0a 0x48
47 b1 d0 56
[root@fir01 /]#
>From OPAL Logs
---------------
[133969609199,7] BT: seq 0x3d netfn 0x0a cmd 0x48: Message sent to host
[133975465455,7] BT: seq 0x3d netfn 0x0a cmd 0x48: IPMI MSG done
>From BMC Logs
--------------
IPMIMain: [693 WARNING][corecmdselect.c:913]
Request: Channel:f; Netfn:a; Cmd:48;
IPMIMain: [693 INFO][corecmdselect.c:924]
Response: Channel:f; Netfn:a; Cmd:48; Data:0 47 b1 d0 56
Signed-off-by: Vipin K Parashar <vipin@linux.vnet.ibm.com>
Reviewed-by: Cyril Bur <cyrilbur@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/ipmi.c')
-rw-r--r-- | core/ipmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ipmi.c b/core/ipmi.c index 60e9640..6fdb9a7 100644 --- a/core/ipmi.c +++ b/core/ipmi.c @@ -141,7 +141,7 @@ void ipmi_cmd_done(uint8_t cmd, uint8_t netfn, uint8_t cc, struct ipmi_msg *msg) } if ((msg->netfn >> 2) + 1 != (netfn >> 2)) { - prerror("IPMI: Incorrect netfn 0x%02x in response\n", netfn); + prerror("IPMI: Incorrect netfn 0x%02x in response\n", netfn >> 2); cc = IPMI_ERR_UNSPECIFIED; } msg->netfn = netfn; |