Fix a printed warning's string formatting and `print`ing