perf tools: Use scnprintf where applicable