]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of riostream
authorSean Hefty <sean.hefty@intel.com>
Thu, 25 Oct 2012 01:03:15 +0000 (18:03 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 25 Oct 2012 01:03:15 +0000 (18:03 -0700)
examples/riostream.c

index 7333a3d9c2271ccfcf0a2db523226d475e5c58a7..dfb03e509f923bbe876c0963f6ce7a9270e7cb57 100644 (file)
@@ -291,7 +291,7 @@ static int send_xfer(int size)
                if (ret > 0) {
                        offset += ret;
                } else if (errno != EWOULDBLOCK && errno != EAGAIN) {
-                       perror("rsend");
+                       perror("riowrite");
                        return ret;
                }
        }
@@ -371,6 +371,7 @@ static int run_test(void)
        *poll_byte = -1;
        offset = riomap(rs, buf, transfer_size, PROT_WRITE, 0, 0);
        if (offset ==  -1) {
+               perror("riomap");
                ret = -1;
                goto out;
        }