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

Hal Rosenstock halr at voltaire.com
Tue Oct 10 04:17:39 PDT 2006


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
 }
 
 /**********************************************************************







More information about the general mailing list