[openib-general] [PATCH] Opensm - error numbering
Yael Kalka
yael at mellanox.co.il
Sun Sep 25 00:14:37 PDT 2005
Hi Hal,
Sorry, this mail was sent with wrong subject....
This patch resolves the ERROR numbering issue.
As you mentioned - there was a problem with the cl_event_wheel.c. The
patch fixes the error there to match the rest of the opensm code.
Also, there was double use of numbering in osm_db_files.c and
osm_vendor_mlx_ts_anafa.c, so I changed the error numbers in osm_db_files.c
Thanks,
Yael
Signed-off-by: Yael Kalka <yael at mellanox.co.il>
Index: complib/cl_event_wheel.c
===================================================================
--- complib/cl_event_wheel.c (revision 3532)
+++ complib/cl_event_wheel.c (working copy)
@@ -187,7 +187,7 @@ __cl_event_wheel_callback( IN void* cont
if (cl_status != CL_SUCCESS)
{
osm_log (p_event_wheel->p_log, OSM_LOG_ERROR,
- "__cl_event_wheel_callback : ERROR 1000: "
+ "__cl_event_wheel_callback : ERR 6100: "
"Failed to start timer\n" );
}
}
@@ -231,7 +231,7 @@ cl_event_wheel_init(
if (cl_status != CL_SUCCESS)
{
osm_log (p_event_wheel->p_log, OSM_LOG_ERROR,
- "cl_event_wheel_init : ERROR 1000: "
+ "cl_event_wheel_init : ERR 6101: "
"Failed to initialize cl_spinlock\n" );
goto Exit;
}
@@ -246,7 +246,7 @@ cl_event_wheel_init(
if (cl_status != CL_SUCCESS)
{
osm_log (p_event_wheel->p_log, OSM_LOG_ERROR,
- "cl_event_wheel_init : ERROR 1000: "
+ "cl_event_wheel_init : ERR 6102: "
"Failed to initialize cl_timer\n" );
goto Exit;
}
@@ -432,7 +432,7 @@ cl_event_wheel_reg(
if (cl_status != CL_SUCCESS)
{
osm_log (p_event_wheel->p_log, OSM_LOG_ERROR,
- "cl_event_wheel_reg : ERROR 1000: "
+ "cl_event_wheel_reg : ERR 6103: "
"Failed to start timer\n" );
goto Exit;
}
Index: opensm/osm_db_files.c
===================================================================
--- opensm/osm_db_files.c (revision 3532)
+++ opensm/osm_db_files.c (working copy)
@@ -177,7 +177,7 @@ osm_db_init(
if (mkdir(p_db_imp->db_dir_name, 777))
{
osm_log( p_log, OSM_LOG_ERROR,
- "osm_db_init: ERR 6901: "
+ "osm_db_init: ERR 6101: "
" Fail to create the db directory:%s\n",
p_db_imp->db_dir_name);
OSM_LOG_EXIT( p_log );
@@ -233,7 +233,7 @@ osm_db_domain_init(
if (! p_file)
{
osm_log( p_log, OSM_LOG_ERROR,
- "osm_db_domain_init: ERR 6902: "
+ "osm_db_domain_init: ERR 6102: "
" Fail to open the db file:%s\n",
p_domain_imp->file_name);
cl_free(p_domain_imp);
@@ -288,7 +288,7 @@ osm_db_restore(
if (! p_file)
{
osm_log( p_log, OSM_LOG_ERROR,
- "osm_db_restore: ERR 6903: "
+ "osm_db_restore: ERR 6103: "
" Fail to open the db file:%s\n",
p_domain_imp->file_name);
status = 1;
@@ -327,7 +327,7 @@ osm_db_restore(
if (! p_first_word)
{
osm_log( p_log, OSM_LOG_ERROR,
- "osm_db_restore: ERR 6904: "
+ "osm_db_restore: ERR 6104: "
" Fail to get key from line:%u : %s\n",
line_num, sLine);
status = 1;
@@ -353,7 +353,7 @@ osm_db_restore(
else if (sLine[0] != '\n')
{
osm_log( p_log, OSM_LOG_ERROR,
- "osm_db_restore: ERR 6905: "
+ "osm_db_restore: ERR 6105: "
" How did we get here? line:%u : %s\n",
line_num, sLine);
status = 1;
@@ -375,7 +375,7 @@ osm_db_restore(
(st_data_t*)&p_prev_val))
{
osm_log( p_log, OSM_LOG_ERROR,
- "osm_db_restore: ERR 6906: "
+ "osm_db_restore: ERR 6106: "
" Key:%s already exists in:%s with value:%s."
" Removing it.\n",
p_key,
@@ -454,7 +454,7 @@ osm_db_store(
if (! p_file)
{
osm_log( p_log, OSM_LOG_ERROR,
- "osm_db_store: ERR 6907: "
+ "osm_db_store: ERR 6107: "
" Fail to open the db file:%s for writing\n",
p_domain_imp->file_name);
status = 1;
@@ -469,7 +469,7 @@ osm_db_store(
if (status)
{
osm_log( p_log, OSM_LOG_ERROR,
- "osm_db_store: ERR 6908: "
+ "osm_db_store: ERR 6108: "
" Fail to rename the db file to:%s (err:%u)\n",
p_domain_imp->file_name, status);
}
More information about the general
mailing list