Message ID | bf63fe27-d04e-140c-6ed2-61a7c719d2ee@dev.mellanox.co.il (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Ira Weiny |
Headers | show |
On Mon, Dec 11, 2017 at 09:57:03AM -0500, Hal Rosenstock wrote: > > There is no SMP and hence no SMP in this case. > Error displayed should be based on errno. > > Signed-off-by: Hal Rosenstock <hal@mellanox.com> Thanks applied, Ira > --- > src/smpdump.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/smpdump.c b/src/smpdump.c > index 6105ec8..bc8559a 100644 > --- a/src/smpdump.c > +++ b/src/smpdump.c > @@ -279,7 +279,7 @@ int main(int argc, char *argv[]) > IBPANIC("send failed"); > > if (umad_recv(portid, umad, &length, -1) != mad_agent) > - IBPANIC("recv error: %s", drmad_status_str(smp)); > + IBPANIC("recv error: %s", strerror(errno)); > > if (!dump_char) { > xdump(stdout, 0, smp->data, 64); > -- > 2.8.4 > -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/src/smpdump.c b/src/smpdump.c index 6105ec8..bc8559a 100644 --- a/src/smpdump.c +++ b/src/smpdump.c @@ -279,7 +279,7 @@ int main(int argc, char *argv[]) IBPANIC("send failed"); if (umad_recv(portid, umad, &length, -1) != mad_agent) - IBPANIC("recv error: %s", drmad_status_str(smp)); + IBPANIC("recv error: %s", strerror(errno)); if (!dump_char) { xdump(stdout, 0, smp->data, 64);
There is no SMP and hence no SMP in this case. Error displayed should be based on errno. Signed-off-by: Hal Rosenstock <hal@mellanox.com> --- src/smpdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)