Some debug() calls in init_printing and related code

This should help some people debug what might be going wrong when
init_printing() doesn't work.