[PATCH infiniband-diags 2/2] smpdump.c: Print number of bytes returned by umad_recv

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

 



Signed-off-by: Hal Rosenstock <hal@xxxxxxxxxxxx>
---
 src/smpdump.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/smpdump.c b/src/smpdump.c
index bc8559a..bb304d4 100644
--- a/src/smpdump.c
+++ b/src/smpdump.c
@@ -281,6 +281,8 @@ int main(int argc, char *argv[])
 	if (umad_recv(portid, umad, &length, -1) != mad_agent)
 		IBPANIC("recv error: %s", strerror(errno));
 
+	printf("%d bytes received\n", length);
+
 	if (!dump_char) {
 		xdump(stdout, 0, smp->data, 64);
 		if (smp->status)
-- 
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