Fix a format string bug and sprinkle some printflikes.

6 files changed