[ofw] [PATCH] mthca patch [2/2]
Reuven Amitai
reuven at mellanox.co.il
Wed Apr 9 06:08:22 PDT 2008
Hi,
The following patch prints the status itself.
Thanks, Reuven.
Index: hw/mthca/kernel/mt_verbs.c
===================================================================
--- hw/mthca/kernel/mt_verbs.c (revision 1047)
+++ hw/mthca/kernel/mt_verbs.c (working copy)
@@ -56,7 +56,6 @@
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 @@
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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080409/be66cb9f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simple_print.patch
Type: application/octet-stream
Size: 649 bytes
Desc: simple_print.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080409/be66cb9f/attachment.obj>
More information about the ofw
mailing list