Berk introduced this in
6b4a52fc, but it is not essential to the
function there, is not very useful for the user, and spams the stdout
with every possible filename for every simulation in (say) a
multi-simulation.
Change-Id: Ifd017c3907f6a46a4f86ac9bc06c5983a5dea946
/* Add extension again */
strcat(buf,(ftp == efTPX) ? "tpr" : (ftp == efEDR) ? "edr" : ftp2ext(ftp));
- if (cr->nodeid == 0) {
- printf("node %d par_fn '%s'\n",cr->nodeid,buf);
- if (fn2ftp(buf) == efLOG) {
- printf("log\n");
- }
+ if (debug)
+ {
+ fprintf(debug, "node %d par_fn '%s'\n",cr->nodeid,buf);
+ if (fn2ftp(buf) == efLOG)
+ {
+ fprintf(debug,"log\n");
+ }
}
}