diagnostics: support compact printing of secondary locations