Parthasarathy Bhuvaragan
2014-09-03 08:01:07 UTC
Change-Id: I613e35e180c815279d2a50f44956a5ed5bf5461b
Signed-off-by: Parthasarathy Bhuvaragan <***@ericsson.com>
---
src/plugins/open/open.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/plugins/open/open.c b/src/plugins/open/open.c
index ebbfa09..f947c1f 100644
--- a/src/plugins/open/open.c
+++ b/src/plugins/open/open.c
@@ -188,9 +188,14 @@ ipmi_openipmi_send_cmd(struct ipmi_intf * intf, struct ipmi_rq * req)
if (intf->open(intf) < 0)
return NULL;
- if (verbose > 2)
- printbuf(req->msg.data, req->msg.data_len,
- "OpenIPMI Request Message");
+ if (verbose > 2) {
+ fprintf(stderr, "OpenIPMI Request Message Header:\n");
+ fprintf(stderr, " netfn = 0x%x\n", req->msg.netfn );
+ fprintf(stderr, " cmd = 0x%x\n", req->msg.cmd);
+ printbuf(req->msg.data, req->msg.data_len, "OpenIPMI Request Message Data");
+ }
+
+
/*
* setup and send message
Signed-off-by: Parthasarathy Bhuvaragan <***@ericsson.com>
---
src/plugins/open/open.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/plugins/open/open.c b/src/plugins/open/open.c
index ebbfa09..f947c1f 100644
--- a/src/plugins/open/open.c
+++ b/src/plugins/open/open.c
@@ -188,9 +188,14 @@ ipmi_openipmi_send_cmd(struct ipmi_intf * intf, struct ipmi_rq * req)
if (intf->open(intf) < 0)
return NULL;
- if (verbose > 2)
- printbuf(req->msg.data, req->msg.data_len,
- "OpenIPMI Request Message");
+ if (verbose > 2) {
+ fprintf(stderr, "OpenIPMI Request Message Header:\n");
+ fprintf(stderr, " netfn = 0x%x\n", req->msg.netfn );
+ fprintf(stderr, " cmd = 0x%x\n", req->msg.cmd);
+ printbuf(req->msg.data, req->msg.data_len, "OpenIPMI Request Message Data");
+ }
+
+
/*
* setup and send message
--
1.9.0
--------------050005030505010403070405--
1.9.0
--------------050005030505010403070405--