[MTHCA] fix error print
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 14 Apr 2008 08:09:36 +0000 (08:09 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 14 Apr 2008 08:09:36 +0000 (08:09 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1058 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mthca/kernel/mt_verbs.c

index 29955e3..a3fd52d 100644 (file)
@@ -56,7 +56,6 @@ void ibv_um_close(    struct ib_ucontext * h_um_ca )
        int err;
        ib_api_status_t         status;
        struct ib_ucontext *context_p = (struct ib_ucontext *)h_um_ca;
-       PREP_IBDEV_FOR_PRINT(context_p->device);
 
        HCA_ENTER(HCA_DBG_SHIM);
 
@@ -95,7 +94,7 @@ end:
        if (status != IB_SUCCESS)
        {
                HCA_PRINT(TRACE_LEVEL_ERROR,HCA_DBG_SHIM,
-                       ("completes with ERROR status %s\n", IB_GET_ERR_STR(status)));
+                       ("completes with ERROR status %x\n", status));
        }
        HCA_EXIT(HCA_DBG_SHIM);
        return;