Print trace info only when built with -DTRACE.