From 56d502faab5738ac243cb64cde6cbb47c99dfef5 Mon Sep 17 00:00:00 2001 From: "Arnaud G. GIBERT" Date: Mon, 6 May 2024 19:16:49 +0200 Subject: [PATCH] - Add liblog LOG_TRACE compile flag support. --- Makefile.var | 8 ++++++++ util/dsbench.c | 39 --------------------------------------- 2 files changed, 8 insertions(+), 39 deletions(-) diff --git a/Makefile.var b/Makefile.var index e3da32d..25b9a14 100644 --- a/Makefile.var +++ b/Makefile.var @@ -84,3 +84,11 @@ endif ifeq ($(OPTIM), Y) CFLAGS += -O3 endif + +ifeq ($(LOG_TRACE), YES) + CFLAGS += -D_LOG_TRACE +endif + +ifeq ($(LOG_TRACE), Y) + CFLAGS += -D_LOG_TRACE +endif diff --git a/util/dsbench.c b/util/dsbench.c index 3cbe9f4..540f8f6 100644 --- a/util/dsbench.c +++ b/util/dsbench.c @@ -595,45 +595,6 @@ NDT_Status Module_Manager( NDT_Root *Root_Ptr, NDT_Index_Id Index_Id, NDT_Nod LG_LOG_TRACE_1( LGD_LOG_LEVEL_DEFAULT, "Command: [%s] called", Command_Name); -/* - switch( (int)(Root_Ptr->Type & NDD_DS_MSK)) - { - case NDD_DS_LIST: - { - switch ((int)(Root_Ptr->Type & NDD_MN_MSK)) - { - case NDD_MN_ORDERED: Root_Type = strdup ("liste triée"); break; - case NDD_MN_FILO: Root_Type = strdup ("liste FILO"); break; - case NDD_MN_FIFO: Root_Type = strdup ("liste FIFO"); break; - default: Root_Type = strdup ("inconnu"); break; - } - break; - } - - case NDD_DS_TREE : - { - switch( (int)(Root_Ptr->Type & NDD_MN_MSK)) - { - case NDD_MN_AUTO_EQU: Root_Type = strdup ("arbre auto-équilibré"); break; - default: Root_Type = strdup ("arbre non auto-équilibré"); break; - } - break; - } - - default: Root_Type = strdup ("inconnu"); break; - } - - RootDesc = (DST_RootDesc *)(Root->User); - fprintf( Out, \ - "\nStructure de type %s :\n\t- Nom = %s\n\t- Manager = %s\n\t- Nombre de modules = %ld\n", \ - Root_Type, RootDesc->Heap_Name, RootDesc->Manager_FileName, Root_Ptr->Node_Number); - - if( ( Root->Type & NDD_DS_MSK) == NDD_DS_TREE) - fprintf( Out, "\t- Profondeur maxi = %ld\n\t- Profondeur mini = %ld\n\t- Différence maximale autorisée = %ld\n\t- Nombre d'équilibrages = %ld\n", \ - Root_Ptr->Max_Depth, Root_Ptr->Min_Depth, Root_Ptr->Max_Dif, Root_Ptr->Nb_Equ); - - if( Root_Type) free( Root_Type); -*/ return( NDS_OK); }