[Openib-windows] [PTACH] is_send_mad prints

Yossi Leybovich sleybo at mellanox.co.il
Thu Sep 14 03:28:06 PDT 2006


Hi
 
It will be great if the following prints will move from warn level to
info level.
They fill the warn level trace.
 
10x
Yossi
 
 
Index: al/al_mad.c
===================================================================
--- al/al_mad.c (revision 1692)
+++ al/al_mad.c (working copy)
@@ -2051,14 +2051,14 @@
  /* Complete the send if the request failed. */
  if( p_wc->status != IB_WCS_SUCCESS )
  {
-  AL_PRINT_EXIT( TRACE_LEVEL_ERROR, AL_DBG_ERROR, ("y-send failed\n" )
);
+  AL_PRINT_EXIT( TRACE_LEVEL_INFORMATION, AL_DBG_ERROR, ("y-send
failed\n" ) );
   return TRUE;
  }
 
  /* Complete the send if it has been canceled. */
  if( h_send->canceled )
  {
-  AL_PRINT_EXIT( TRACE_LEVEL_WARNING, AL_DBG_MAD_SVC,
+  AL_PRINT_EXIT( TRACE_LEVEL_INFORMATION, AL_DBG_MAD_SVC,
    ("y-send was canceled\n") );
   return TRUE;
  }
@@ -2066,7 +2066,7 @@
  /* Complete the send if we have its response. */
  if( h_send->p_resp_mad )
  {
-  AL_PRINT_EXIT( TRACE_LEVEL_WARNING, AL_DBG_MAD_SVC,
+  AL_PRINT_EXIT( TRACE_LEVEL_INFORMATION, AL_DBG_MAD_SVC,
    ("y-response received\n") );
   return TRUE;
  }
@@ -2074,7 +2074,7 @@
  /* RMPP sends cannot complete until all segments have been acked. */
  if( h_send->uses_rmpp && (h_send->ack_seg < h_send->total_seg) )
  {
-  AL_PRINT_EXIT( TRACE_LEVEL_WARNING, AL_DBG_MAD_SVC,
+  AL_PRINT_EXIT( TRACE_LEVEL_INFORMATION, AL_DBG_MAD_SVC,
    ("more RMPP segments to send\n") );
   return FALSE;
  }
@@ -2085,13 +2085,13 @@
   */
  if( h_send->p_send_mad->resp_expected )
  {
-  AL_PRINT_EXIT( TRACE_LEVEL_WARNING, AL_DBG_MAD_SVC,
+  AL_PRINT_EXIT( TRACE_LEVEL_INFORMATION, AL_DBG_MAD_SVC,
    ("no-waiting on response\n") );
   return FALSE;
  }
  else
  {
-  AL_PRINT_EXIT( TRACE_LEVEL_WARNING, AL_DBG_MAD_SVC, ("send
completed\n") );
+  AL_PRINT_EXIT( TRACE_LEVEL_INFORMATION, AL_DBG_MAD_SVC, ("send
completed\n") );
   return TRUE;
  }
 }
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: al_mad_prints.patch
Type: application/octet-stream
Size: 1799 bytes
Desc: al_mad_prints.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20060914/a7227885/attachment.obj>


More information about the ofw mailing list