- Add LibLog 1.1.x support.
This commit is contained in:
@@ -687,7 +687,7 @@ void Command_Get( int *choice, char **arg1, char **arg2, FILE *File_Output,
|
||||
void Command_Exec_Begin_Print( FILE *File_Output, int Choice)
|
||||
{
|
||||
// fprintf( File_Output, "%s: %s...\n", Command_Tab[Choice].Name, Command_Tab[Choice].FullName);
|
||||
LG_LOG_INFO_2( "%s: %s...", Command_Tab[Choice].Name, Command_Tab[Choice].FullName);
|
||||
LG_LOG_INFO( "%s: %s...", Command_Tab[Choice].Name, Command_Tab[Choice].FullName);
|
||||
// fflush( File_Output);
|
||||
}
|
||||
|
||||
@@ -704,12 +704,12 @@ void Command_Exec_End_Print( FILE *File_Output, int Choice, cpt T_Exec, int
|
||||
if( nb == 1)
|
||||
{
|
||||
// fprintf( File_Output, "%s: Completed in (%.4f) second !\n", Command_Tab[Choice].Name, T_Exec.sec);
|
||||
LG_LOG_INFO_2( "%s: Completed in (%.4f) second !", Command_Tab[Choice].Name, T_Exec.sec);
|
||||
LG_LOG_INFO( "%s: Completed in (%.4f) second !", Command_Tab[Choice].Name, T_Exec.sec);
|
||||
}
|
||||
else
|
||||
{
|
||||
// fprintf( File_Output, "%s: Completed in (%.4f) second, (%.2f) per second !\n", Command_Tab[Choice].Name, T_Exec.sec, nb / T_Exec.sec);
|
||||
LG_LOG_INFO_3( "%s: Completed in (%.4f) second, (%.2f) per second !", Command_Tab[Choice].Name, T_Exec.sec, nb / T_Exec.sec);
|
||||
LG_LOG_INFO( "%s: Completed in (%.4f) second, (%.2f) per second !", Command_Tab[Choice].Name, T_Exec.sec, nb / T_Exec.sec);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -935,7 +935,7 @@ void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, cha
|
||||
// fprintf( File_Output, "DS_Value_Add: Adding from: (%d) to: (%d) order: (%d)...\n", low, high, order);
|
||||
// fflush( File_Output);
|
||||
|
||||
LG_LOG_INFO_3( "DS_Value_Add: Adding from: (%d) to: (%d) order: (%d)...", low, high, order);
|
||||
LG_LOG_INFO( "DS_Value_Add: Adding from: (%d) to: (%d) order: (%d)...", low, high, order);
|
||||
|
||||
|
||||
t_start( t_exec);
|
||||
@@ -955,7 +955,7 @@ void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, cha
|
||||
{
|
||||
// fprintf( File_Output, "DS_Value_Add: Allocation Failled !\n");
|
||||
|
||||
LG_LOG_ERROR_0( "DS_Value_Add: Allocation Failled !");
|
||||
LG_LOG_ERROR( "DS_Value_Add: Allocation Failled !");
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -976,7 +976,7 @@ void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, cha
|
||||
else
|
||||
{
|
||||
// fprintf( File_Output, "DS_Value_Add: Allocation Failled !\n");
|
||||
LG_LOG_ERROR_0( "DS_Value_Add: Allocation Failled !");
|
||||
LG_LOG_ERROR( "DS_Value_Add: Allocation Failled !");
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1083,7 +1083,7 @@ void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, cha
|
||||
// fprintf( File_Output, "DS_Value_Find: from: (%d) to: (%d)...\n", low, high);
|
||||
// fflush( File_Output);
|
||||
|
||||
LG_LOG_INFO_2( "DS_Value_Find: from: (%d) to: (%d)...", low, high);
|
||||
LG_LOG_INFO( "DS_Value_Find: from: (%d) to: (%d)...", low, high);
|
||||
|
||||
|
||||
i = low;
|
||||
@@ -1115,7 +1115,7 @@ void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, cha
|
||||
// fprintf( File_Output, "Index_List_Open: Opening a FIFO List from: (%d) to: (%d)...\n", low, high);
|
||||
// fflush( File_Output);
|
||||
|
||||
LG_LOG_INFO_2( "Index_List_Open: Opening a FIFO List from: (%d) to: (%d)...", low, high);
|
||||
LG_LOG_INFO( "Index_List_Open: Opening a FIFO List from: (%d) to: (%d)...", low, high);
|
||||
|
||||
t_start( t_exec);
|
||||
|
||||
@@ -1141,7 +1141,7 @@ void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, cha
|
||||
// fprintf( File_Output, "Index_Tree_Open: Opening a balanced Tree from: (%d) to: (%d)...\n", low, high);
|
||||
// fflush( File_Output);
|
||||
|
||||
LG_LOG_INFO_2( "Index_Tree_Open: Opening a balanced Tree from: (%d) to: (%d)...", low, high);
|
||||
LG_LOG_INFO( "Index_Tree_Open: Opening a balanced Tree from: (%d) to: (%d)...", low, high);
|
||||
|
||||
t_start( t_exec);
|
||||
|
||||
@@ -1167,7 +1167,7 @@ void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, cha
|
||||
// fprintf( File_Output, "Index_Close: Closing index from: (%d) to: (%d)...\n", low, high);
|
||||
// fflush( File_Output);
|
||||
|
||||
LG_LOG_INFO_2( "Index_Close: Closing index from: (%d) to: (%d)...", low, high);
|
||||
LG_LOG_INFO( "Index_Close: Closing index from: (%d) to: (%d)...", low, high);
|
||||
|
||||
t_start( t_exec);
|
||||
|
||||
@@ -1234,7 +1234,7 @@ void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, cha
|
||||
if( index_subtype != NDD_INDEX_SUBTYPE_UNKNOWN)
|
||||
{
|
||||
// fprintf( File_Output, "Index_List_SubType_Set: Setting List SubType to: (%d) (%s) !\n", index_subtype, ND_INDEX_SUBTYPE_VALUE_ASCII_GET( index_subtype));
|
||||
LG_LOG_INFO_2( "Index_List_SubType_Set: Setting List SubType to: (%d) (%s) !", index_subtype, ND_INDEX_SUBTYPE_VALUE_ASCII_GET( index_subtype));
|
||||
LG_LOG_INFO( "Index_List_SubType_Set: Setting List SubType to: (%d) (%s) !", index_subtype, ND_INDEX_SUBTYPE_VALUE_ASCII_GET( index_subtype));
|
||||
|
||||
t_start( t_exec);
|
||||
|
||||
@@ -1339,7 +1339,7 @@ void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, cha
|
||||
// fprintf( File_Output, "Index_Reorg: Reorganizing index (%d)...\n", i);
|
||||
// fflush( File_Output);
|
||||
|
||||
LG_LOG_INFO_1( "Index_Reorg: Reorganizing index (%d)...", i);
|
||||
LG_LOG_INFO( "Index_Reorg: Reorganizing index (%d)...", i);
|
||||
|
||||
ND_Index_Reorg( *DS_Ptr_Ptr, (NDT_Index_Id)i);
|
||||
}
|
||||
@@ -1365,7 +1365,7 @@ void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, cha
|
||||
// fprintf( File_Output, "Index_Tree_To_List: Converting Index (%d)...\n", i);
|
||||
// fflush( File_Output);
|
||||
|
||||
LG_LOG_INFO_1( "Index_Tree_To_List: Converting Index (%d)...", i);
|
||||
LG_LOG_INFO( "Index_Tree_To_List: Converting Index (%d)...", i);
|
||||
|
||||
ND_Index_Convert( *DS_Ptr_Ptr, (NDT_Index_Id)i, idx_type_sorted_list);
|
||||
}
|
||||
@@ -1391,7 +1391,7 @@ void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, cha
|
||||
// fprintf( File_Output, "Index_List_To_Tree: Converting Index (%d)...\n", i);
|
||||
// fflush( File_Output);
|
||||
|
||||
LG_LOG_INFO_1( "Index_List_To_Tree: Converting Index (%d)...", i);
|
||||
LG_LOG_INFO( "Index_List_To_Tree: Converting Index (%d)...", i);
|
||||
|
||||
ND_Index_Convert( *DS_Ptr_Ptr, (NDT_Index_Id)i, idx_type_balanced_tree);
|
||||
}
|
||||
@@ -1413,7 +1413,7 @@ void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, cha
|
||||
// fprintf( File_Output, "Index_Info_Print: Printing index from: (%d) to: (%d)...\n", low, high);
|
||||
// fflush( File_Output);
|
||||
|
||||
LG_LOG_INFO_2( "Index_Info_Print: Printing index from: (%d) to: (%d)...", low, high);
|
||||
LG_LOG_INFO( "Index_Info_Print: Printing index from: (%d) to: (%d)...", low, high);
|
||||
|
||||
for( i = low; i <= high; i++)
|
||||
{
|
||||
@@ -1429,7 +1429,7 @@ void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, cha
|
||||
// fprintf( File_Output, "DS_Value_Print:\n");
|
||||
// fflush( File_Output);
|
||||
|
||||
LG_LOG_INFO_0( "DS_Value_Print:");
|
||||
LG_LOG_INFO( "DS_Value_Print:");
|
||||
|
||||
ND_DataStruct_Value_Print( File_Output, *DS_Ptr_Ptr, NDD_RECURSIVE_MODE_PARENT_CHILD, 99, 0);
|
||||
break;
|
||||
@@ -1460,7 +1460,7 @@ void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, cha
|
||||
// low, high);
|
||||
// fflush( File_Output);
|
||||
|
||||
LG_LOG_INFO_3( "Index_Value_Break: Breaking: (%s) values from index: (%d) to: (%d)...",
|
||||
LG_LOG_INFO( "Index_Value_Break: Breaking: (%s) values from index: (%d) to: (%d)...",
|
||||
( position == 0 ) ? "Head" : ( ( position == 1) ? "Tail" : "Random"),
|
||||
low, high);
|
||||
|
||||
@@ -1501,7 +1501,7 @@ void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, cha
|
||||
// fprintf( File_Output, "0x(%x)", node_ptr);
|
||||
// fflush( File_Output);
|
||||
|
||||
LG_LOG_INFO_1( "Index_Value_Break: Breaking value of node: 0x(%x)", node_ptr);
|
||||
LG_LOG_INFO( "Index_Value_Break: Breaking value of node: 0x(%x)", node_ptr);
|
||||
|
||||
node_ptr->Value = (void *)-1;
|
||||
}
|
||||
@@ -1537,8 +1537,8 @@ void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, cha
|
||||
// fprintf( File_Output, "Index_Check: ");
|
||||
// fflush( File_Output);
|
||||
|
||||
LG_LOG_INFO_1( "Index_Check: Checking Index (%d)...", i);
|
||||
LG_LOG_INFO_0( "Index_Check: ");
|
||||
LG_LOG_INFO( "Index_Check: Checking Index (%d)...", i);
|
||||
LG_LOG_INFO( "Index_Check: ");
|
||||
|
||||
Nb_Corrected = Nb_Detected = 0;
|
||||
ND_Index_Check( *DS_Ptr_Ptr, (NDT_Index_Id)i, &Nb_Detected, &Nb_Corrected, File_Output);
|
||||
@@ -1571,20 +1571,20 @@ void Command_Exec( NDT_Root **DS_Ptr_Ptr, FILE *File_Output, int Choice, cha
|
||||
if( file_input == NULL)
|
||||
{
|
||||
// fprintf( File_Output, "Batch_Run: Can't open file (%s)!\n", Arg1);
|
||||
LG_LOG_ERROR_1( "Batch_Run: Can't open file (%s)!", Arg1);
|
||||
LG_LOG_ERROR( "Batch_Run: Can't open file (%s)!", Arg1);
|
||||
}
|
||||
else
|
||||
{
|
||||
// fprintf( File_Output, "\n\n--------------------------------------------------------------------------------\n");
|
||||
// fprintf( File_Output, "Batch_Run: Starting execution (%s)...\n", Arg1);
|
||||
LG_LOG_INFO_0( "--------------------------------------------------------------------------------");
|
||||
LG_LOG_INFO_1( "Batch_Run: Starting execution (%s)...", Arg1);
|
||||
LG_LOG_INFO( "--------------------------------------------------------------------------------");
|
||||
LG_LOG_INFO( "Batch_Run: Starting execution (%s)...", Arg1);
|
||||
|
||||
Batch_Run( DS_Ptr_Ptr, File_Output, file_input, 0);
|
||||
|
||||
// fprintf( File_Output, "\n");
|
||||
// fprintf( File_Output, "Batch_Run: Ending execution (%s)...\n", Arg1);
|
||||
LG_LOG_INFO_1( "Batch_Run: Ending execution (%s)...", Arg1);
|
||||
LG_LOG_INFO( "Batch_Run: Ending execution (%s)...", Arg1);
|
||||
|
||||
fclose( file_input);
|
||||
}
|
||||
@@ -1654,7 +1654,7 @@ int main( int argc, char **argv)
|
||||
return( -1);
|
||||
}
|
||||
|
||||
LG_LOG_INFO_0( "Start NDBench");
|
||||
LG_LOG_INFO( "Start NDBench");
|
||||
|
||||
|
||||
/* Init Random numbers... */
|
||||
@@ -1708,7 +1708,7 @@ int main( int argc, char **argv)
|
||||
}
|
||||
|
||||
|
||||
LG_LOG_INFO_0( "End NDBench");
|
||||
LG_LOG_INFO( "End NDBench");
|
||||
|
||||
if( ( lg_status = LG_Library_Close( true)) != LGS_OK)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user