reformat debug output