Use consistently debug output instead of an unconditional printf.

MFC after: 3 days