[openib-general] [PATCHv2] OpenSM/libvendor/osm_vendor_ibumad.c: Print errors to stderr rather than stdout

Eitan Zahavi eitan at mellanox.co.il
Tue Oct 10 05:11:40 PDT 2006


Thanks. Please apply.
Eitan

Hal Rosenstock wrote:

>OpenSM/libvendor/osm_vendor_ibumad.c: Print errors to stderr rather than
>stdout
>
>Signed-off-by: Hal Rosenstock <halr at voltaire.com>
>
>Index: libvendor/osm_vendor_ibumad.c
>===================================================================
>--- libvendor/osm_vendor_ibumad.c	(revision 9765)
>+++ libvendor/osm_vendor_ibumad.c	(working copy)
>@@ -745,8 +745,8 @@ osm_vendor_open_port(
> 				"osm_vendor_open_port: ERR 542D: "
> 				"Node type %d is not an IB node type\n",
> 				p_vend->umad_ca.node_type );
>-		printf( "\nNode type %d is not an IB node type\n",
>-			p_vend->umad_ca.node_type );
>+		fprintf( stderr, "Node type %d is not an IB node type\n",
>+			 p_vend->umad_ca.node_type );
> 		goto Exit;
> 	}
> 
>@@ -952,7 +952,9 @@ __osm_vendor_recv_dummy_cb(
> 	IN void *bind_context,
> 	IN osm_madw_t *p_req_madw )
> {
>-	printf("Ignoring received MAD after osm_vendor_unbind\n");
>+#ifdef _DEBUG_
>+	fprintf(stderr, "__osm_vendor_recv_dummy_cb: Ignoring received MAD after osm_vendor_unbind\n");
>+#endif
> }
> 
> /**********************************************************************
>@@ -962,7 +964,9 @@ __osm_vendor_send_err_dummy_cb(
> 	IN void* bind_context,
> 	IN osm_madw_t *p_req_madw )
> {
>-	printf("Ignoring send error after osm_vendor_unbind\n");
>+#ifdef _DEBUG_
>+	fprintf(stderr, "__osm_vendor_send_err_dummy_cb: Ignoring send error after osm_vendor_unbind\n");
>+#endif
> }
> 
> /**********************************************************************
>
>
>
>
>_______________________________________________
>openib-general mailing list
>openib-general at openib.org
>http://openib.org/mailman/listinfo/openib-general
>
>To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
>  
>





More information about the general mailing list