Same behavior, but avoids deprecation warnings on macOS builds and also lets us use generic print formatting.