mlx4: change prints from error to information
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 12 May 2009 17:14:08 +0000 (17:14 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 12 May 2009 17:14:08 +0000 (17:14 +0000)
TRACE_LEVEL_ERROR is intended for "Severe errors".  Change
ref/deref interface and DriverEntry exit log messages from
error to informational only.  This avoids displaying
misleading "***ERROR***" messages on the debug terminal.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2168 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mlx4/kernel/hca/drv.c
hw/mthca/kernel/hca_pnp.c

index 4af4c9e..a8be176 100644 (file)
@@ -164,7 +164,7 @@ __ref_ifc(
        cl_atomic_inc( &p_fdo->n_hca_ifc_ref );\r
        ObReferenceObject( p_dev_obj );\r
 \r
-       HCA_PRINT( TRACE_LEVEL_ERROR, HCA_DBG_PNP, \r
+       HCA_PRINT( TRACE_LEVEL_INFORMATION, HCA_DBG_PNP, \r
                ("MLX4_HCA: CA_guid %I64x, hca_ifc_ref %d\n",\r
                p_fdo->hca.guid, p_fdo->n_hca_ifc_ref) );\r
 \r
@@ -182,7 +182,7 @@ __deref_ifc(
        cl_atomic_dec( &p_fdo->n_hca_ifc_ref );\r
        ObDereferenceObject( p_dev_obj );\r
 \r
-       HCA_PRINT( TRACE_LEVEL_ERROR, HCA_DBG_PNP, \r
+       HCA_PRINT( TRACE_LEVEL_INFORMATION, HCA_DBG_PNP, \r
                ("MLX4_HCA: CA_guid %I64x, hca_ifc_ref %d\n",\r
                p_fdo->hca.guid, p_fdo->n_hca_ifc_ref) );\r
 \r
@@ -591,7 +591,7 @@ Return Value:
        }\r
 \r
 end:\r
-       HCA_PRINT( TRACE_LEVEL_ERROR ,HCA_DBG_PNP ,\r
+       HCA_PRINT( TRACE_LEVEL_INFORMATION,HCA_DBG_PNP ,\r
                ("exit status %#x.\n", status));\r
        HCA_EXIT( HCA_DBG_PNP );\r
        return status;\r
index 1488a74..b1d810d 100644 (file)
@@ -810,7 +810,7 @@ __ref_ifc(
        cl_atomic_inc( &p_ext->n_hca_ifc_ref );\r
        ObReferenceObject( p_dev_obj );\r
 \r
-       HCA_PRINT( TRACE_LEVEL_ERROR, HCA_DBG_PNP, \r
+       HCA_PRINT( TRACE_LEVEL_INFORMATION, HCA_DBG_PNP, \r
                ("MTHCA: CA_guid %I64x, hca_ifc_ref %d\n",\r
                p_ext->hca.guid, p_ext->n_hca_ifc_ref) );\r
 \r
@@ -828,7 +828,7 @@ __deref_ifc(
        cl_atomic_dec( &p_ext->n_hca_ifc_ref );\r
        ObDereferenceObject( p_dev_obj );\r
 \r
-       HCA_PRINT( TRACE_LEVEL_ERROR, HCA_DBG_PNP, \r
+       HCA_PRINT( TRACE_LEVEL_INFORMATION, HCA_DBG_PNP, \r
                ("MTHCA: CA_guid %I64x, hca_ifc_ref %d\n",\r
                p_ext->hca.guid, p_ext->n_hca_ifc_ref) );\r
 \r