[PATCH infiniband-diags 1/2] smpdump.c: Minor fix for when umad_recv fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is no SMP and hence no SMP in this case.
Error displayed should be based on errno.

Signed-off-by: Hal Rosenstock <hal@xxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux