Scicos sim: log the UID on the simulation trace 50/17850/2
Clément DAVID [Thu, 3 Mar 2016 18:28:34 +0000 (19:28 +0100)]
Without the UID, its hard to trace the executed block back to the scs_m
structure.

Change-Id: I1e39707135edbbe323be93df7fe88cdbb8f2204a

scilab/modules/scicos/src/c/scicos.c

index c390417..a571de7 100644 (file)
@@ -3610,7 +3610,7 @@ void callf(double *t, scicos_block *block, scicos_flag *flag)
     {
         if (cosd != 3)
         {
-            sciprint(_("block %d is called "), C2F(curblk).kfun);
+            sciprint(_("block %d [%s] is called "), C2F(curblk).kfun, block->uid);
             sciprint(_("with flag %d "), *flag);
             sciprint(_("at time %f \n"), *t);
         }