[IBAL,WinVerbs] fix ib_get_err_str
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 16 Feb 2009 11:50:20 +0000 (11:50 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 16 Feb 2009 11:50:20 +0000 (11:50 +0000)
The addition of IB_INVALID_GUID_MASK wasn't reflected in the string conversion.  This causes all text representations of error values greater than IB_INVALID_GUID_MASK to be wrong.

Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1966 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/ib_statustext.c
core/winverbs/user/wv_main.cpp

index 569ed4d..43e0ae5 100644 (file)
@@ -75,6 +75,7 @@ static const char* const __ib_error_str[] =
        "IB_INVALID_GID",\r
        "IB_INVALID_LID",\r
        "IB_INVALID_GUID",\r
+       "IB_INVALID_GUID_MASK",\r
        "IB_INVALID_CA_HANDLE",\r
        "IB_INVALID_AV_HANDLE",\r
        "IB_INVALID_CQ_HANDLE",\r
index f6e1c78..2796c94 100644 (file)
@@ -89,6 +89,7 @@ HRESULT WvConvertIbStatus(ib_api_status_t status)
        case IB_INVALID_GID:                    return WV_INVALID_ADDRESS;\r
        case IB_INVALID_LID:                    return WV_INVALID_ADDRESS;\r
        case IB_INVALID_GUID:                   return WV_INVALID_ADDRESS;\r
+       case IB_INVALID_GUID_MASK:              return WV_INVALID_ADDRESS;\r
        case IB_INVALID_CA_HANDLE:              return WV_INVALID_HANDLE;\r
        case IB_INVALID_AV_HANDLE:              return WV_INVALID_HANDLE;\r
        case IB_INVALID_CQ_HANDLE:              return WV_INVALID_HANDLE;\r