util: Fix an incorrect print statement in git pre-commit hook
authorHoa Nguyen <hoanguyen@ucdavis.edu>
Fri, 23 Oct 2020 08:43:27 +0000 (01:43 -0700)
committerHoa Nguyen <hoanguyen@ucdavis.edu>
Fri, 23 Oct 2020 21:30:28 +0000 (21:30 +0000)
Change-Id: I13d0a705b6cfab654635380e2adbf36243344a62
Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36516
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
util/git-pre-commit.py

index 7681b878b5547fe1c0e25eef567f2d117a87b894..ece246714188c3ab7aa030839d31c04c03ab5739 100755 (executable)
@@ -114,6 +114,6 @@ if failing_files:
             "fixes for commit in\n"
             "the following files: ", file=sys.stderr)
         for f in staged_mismatch:
-            print("\t%s".format(f), file=sys.stderr)
+            print("\t{}".format(f), file=sys.stderr)
         print("Please `git --add' them", file=sys.stderr)
     sys.exit(1)