Fix a couple more areas where printf shouldn't be used
Merge pull request #2907 from ibuclaw/stdmsg2

Fix a couple more areas where printf shouldn't be used