Closes #27904: Improved logging statements to defer formatting until needed.
diff --git a/Lib/distutils/command/config.py b/Lib/distutils/command/config.py
index b1fd09e..4ae153d 100644
--- a/Lib/distutils/command/config.py
+++ b/Lib/distutils/command/config.py
@@ -337,7 +337,7 @@
     If head is not None, will be dumped before the file content.
     """
     if head is None:
-        log.info('%s' % filename)
+        log.info('%s', filename)
     else:
         log.info(head)
     file = open(filename)