Use correct formatter type in warning.