Use legal printf format strings when logging.

Building with debian packaging tools failed due to logging calls with incorrect printf-style arguments. Here are some fixes.