diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-12-01 12:21:52 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-12-01 12:21:52 +0100 |
commit | 096a497b36f208fb68a12c7ae7576ca0a69f919d (patch) | |
tree | 3845c9631fab6a3a6177813367ddd03f7867700b /src/plugins/open/open.c | |
parent | 7b5768ae6a3fee6cb80300824b9e758021b22f2e (diff) | |
parent | 55031e72e6c02b4ae63e9052bad1a4b40002ac18 (diff) |
Import new upstream release 1.8.15
Diffstat (limited to 'src/plugins/open/open.c')
-rw-r--r-- | src/plugins/open/open.c | 13 |
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)); |