diff options
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)); |