Fix missing newline and simplify debug printing.