processstats: optimized print(..) statement code