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