[WSD] Fix printing on error.
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 9 Jul 2008 07:15:46 +0000 (07:15 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 9 Jul 2008 07:15:46 +0000 (07:15 +0000)
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1351 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/wsd/user/ibsp_ip.c

index 97d1410..34508dc 100644 (file)
@@ -288,11 +288,14 @@ query_guid_address(
                        Sleep( 100 );\r
        }\r
        if( hr == S_OK )\r
+       {\r
                *port_guid = gids.dest_gid.unicast.interface_id;\r
-\r
-       IBSP_ERROR( ("IBAT::Resolve failed for IP %08x\n",\r
-               ((struct sockaddr_in*)p_dest_addr)->sin_addr.s_addr) );\r
-\r
+       }\r
+       else\r
+       {\r
+               IBSP_ERROR( ("IBAT::Resolve for IP %08x\n",\r
+                       ((struct sockaddr_in*)p_dest_addr)->sin_addr.s_addr) );\r
+       }\r
        return hr;\r
 }\r
 \r