[ofw] [PATCH] WSD: Only generate error output in case of error
Fab Tillier
ftillier at windows.microsoft.com
Tue Jul 8 17:37:04 PDT 2008
My previous patch to make WSD use IBAT generated error logging even in successful cases. This patch relocates the error output into an 'else' clause.
Signed-off-by: Fab Tillier <ftillier at microsoft.com>
diff -up -r -X trunk\docs\dontdiff.txt -I \$Id: old\ulp\wsd\user\ibsp_ip.c trunk\ulp\wsd\user\ibsp_ip.c
--- old\ulp\wsd\user\ibsp_ip.c Tue Jul 08 10:15:30 2008
+++ trunk\ulp\wsd\user\ibsp_ip.c Tue Jul 08 17:32:48 2008
@@ -288,11 +288,14 @@ query_guid_address(
Sleep( 100 );
}
if( hr == S_OK )
+ {
*port_guid = gids.dest_gid.unicast.interface_id;
-
- IBSP_ERROR( ("IBAT::Resolve failed for IP %08x\n",
- ((struct sockaddr_in*)p_dest_addr)->sin_addr.s_addr) );
-
+ }
+ else
+ {
+ IBSP_ERROR( ("IBAT::Resolve for IP %08x\n",
+ ((struct sockaddr_in*)p_dest_addr)->sin_addr.s_addr) );
+ }
return hr;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wsd_ibat_spew.patch
Type: application/octet-stream
Size: 639 bytes
Desc: wsd_ibat_spew.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080708/1161d062/attachment.obj>
More information about the ofw
mailing list