Reformat debug messages.