]> git.openfabrics.org - ~ardavis/dapl.git/commitdiff
dapl: fix string bug in dapls_dto_op_str
authorDave Goodell <dgoodell@cisco.com>
Mon, 24 Mar 2014 21:07:37 +0000 (14:07 -0700)
committerArlin Davis <arlin.r.davis@intel.com>
Thu, 22 May 2014 21:57:37 +0000 (14:57 -0700)
This led to indexing off the end of the array and gave surprising
results for OP_RECV_UD.

dapl/openib_common/dapl_ib_dto.h

index 0c61154ab1e086e5a247d79aa9edac9e33fc8da1..076ddea141db0ed3d6682d961b70ee2c74a2ea22 100644 (file)
@@ -522,8 +522,8 @@ STATIC _INLINE_ char * dapls_dto_op_str(int op)
         "OP_RECEIVE",
         "OP_RECEIVE_MSG_IMM",
        "OP_RECEIVE_RDMA_IMM",
-        "OP_BIND_MW"
-       "OP_SEND_UD"
+        "OP_BIND_MW",
+       "OP_SEND_UD",
        "OP_RECV_UD"
     };
     return ((op < 0 || op > 12) ? "Invalid CQE OP?" : optable[op]);