]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Still debugging rou_dbglive
authorJean-Marc Pigeon <jmp@safe.c>
Sun, 16 Nov 2025 20:10:09 +0000 (15:10 -0500)
committerJean-Marc Pigeon <jmp@safe.c>
Sun, 16 Nov 2025 20:10:09 +0000 (15:10 -0500)
lib/subrou.c
sysconfig/mailleur

index 449d894e99130da4f6321ee76f85c72085094ea9..69c0a7a866a64b414582f0c9a65264ab74ce4b45 100644 (file)
@@ -640,15 +640,14 @@ PUBLIC void rou_dbglive(const int dlevel,const char *prcref,const char *fmt,...)
 {
 #define DBG  "DBGLIVE"
 
-(void) rou_alert(0,"BIGRE Bigre dbglive=<%s>",dbglive);
 if ((debug>=dlevel)&&(dbglive!=(char *)0)) {
-  (void) rou_alert(0,"Bigre dbglive=<%s>",dbglive);
   if (strstr(dbglive,prcref)!=(char *)0) {
     char *nstr;
     va_list args;
 
-    (void) rou_asprintf(&nstr,"%s: %s",prcref,fmt);
     va_start(args,fmt);
+    (void) rou_asprintf(&nstr,"%s: %s",prcref,fmt);
+    (void) rou_alert(0,"Bigre dbglive=<%s> nstr=<%s>",dbglive,nstr);
     (void) rou_valert(dlevel,nstr,args);
     va_end(args);
     (void) free(nstr);
index 9c599db1ff3d7064df7b1032634de03000c12eeb..fc85325d67f4f19579629598cfd47e00a9f9d51a 100644 (file)
@@ -1,7 +1,8 @@
 #-------------------------------------------
 #options available to debug mailleur
 #OPTIONS="-d9"
-#this is to debug a specific function within a specific module
-#OPTIONS="-d9 -Dlvleml.c:checkto,modrec.c:docontact
+#this is to debug a specific function within a specific procedure name
+#Avaliable procedure name are defined within mailleur sources (#define OPEP)
+#OPTIONS="-d9 -Dlvleml.c:checkto,modrec.c:docontact"
 #-------------------------------------------