Fix logging, again

Fix missing #include, and fix another invalid attempt to forward a printf.

I don't want to know how many other broken printfs may be running around...