Format summary output.