summaryrefslogtreecommitdiff
path: root/src/plugins/open/open.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-12-01 12:21:52 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-12-01 12:21:52 +0100
commit096a497b36f208fb68a12c7ae7576ca0a69f919d (patch)
tree3845c9631fab6a3a6177813367ddd03f7867700b /src/plugins/open/open.c
parent7b5768ae6a3fee6cb80300824b9e758021b22f2e (diff)
parent55031e72e6c02b4ae63e9052bad1a4b40002ac18 (diff)
Import new upstream release 1.8.15
Diffstat (limited to 'src/plugins/open/open.c')
-rw-r--r--src/plugins/open/open.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/plugins/open/open.c b/src/plugins/open/open.c
index 92b6f37..f1ea0dd 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
@@ -227,7 +232,7 @@ ipmi_openipmi_send_cmd(struct ipmi_intf * intf, struct ipmi_rq * req)
fprintf(stderr, "Converting message:\n");
fprintf(stderr, " netfn = 0x%x\n", req->msg.netfn );
fprintf(stderr, " cmd = 0x%x\n", req->msg.cmd);
- if (recv.msg.data && recv.msg.data_len) {
+ if (req->msg.data && req->msg.data_len) {
fprintf(stderr, " data_len = %d\n", req->msg.data_len);
fprintf(stderr, " data = %s\n",
buf2str(req->msg.data,req->msg.data_len));