Index: trunk/util/gsch2pcb-rnd/gsch2pcb.c =================================================================== --- trunk/util/gsch2pcb-rnd/gsch2pcb.c (revision 3610) +++ trunk/util/gsch2pcb-rnd/gsch2pcb.c (revision 3611) @@ -163,6 +163,17 @@ fprintf(stderr, "\n"); } +void pcb_trace(const char *Format, ...) +{ +#ifndef NDEBUG + va_list args; + va_start(args, Format); + vfprintf(stderr, Format, args); + va_end(args); +#endif +} + + /** * Build and run a command. No redirection or error handling is * done. Format string is split on whitespace. Specifiers %l and %s