fix(lint): Fix lint issues on main (#110389)

Lint issue was introduced in https://github.com/pytorch/pytorch/pull/110186

Pull Request resolved: https://github.com/pytorch/pytorch/pull/110389
Approved by: https://github.com/Skylion007, https://github.com/malfet
diff --git a/torch/_inductor/fx_passes/post_grad.py b/torch/_inductor/fx_passes/post_grad.py
index 12cbc63..08eca92 100644
--- a/torch/_inductor/fx_passes/post_grad.py
+++ b/torch/_inductor/fx_passes/post_grad.py
@@ -96,7 +96,10 @@
     if config.is_fbcode():
         from torch._inductor.fb.utils import get_everpaste_url  # type: ignore[import]
 
-        log.info(f"Print graph after recompile in post grad passes: {get_everpaste_url(str(gm.graph))}")
+        log.info(
+            "Print graph after recompile in post grad passes: %s",
+            get_everpaste_url(str(gm.graph)),
+        )
 
 
 @init_once_fakemode
diff --git a/torch/_inductor/fx_passes/pre_grad.py b/torch/_inductor/fx_passes/pre_grad.py
index 642af6b..150a312 100644
--- a/torch/_inductor/fx_passes/pre_grad.py
+++ b/torch/_inductor/fx_passes/pre_grad.py
@@ -76,7 +76,10 @@
     if config.is_fbcode():
         from torch._inductor.fb.utils import get_everpaste_url  # type: ignore[import]
 
-        log.info(f"Print graph after recompile in pre grad passes: {get_everpaste_url(str(gm.graph))}")
+        log.info(
+            "Print graph after recompile in pre grad passes: %s",
+            get_everpaste_url(str(gm.graph)),
+        )
 
     return gm