From: Hoa Nguyen Date: Fri, 23 Oct 2020 08:43:27 +0000 (-0700) Subject: util: Fix an incorrect print statement in git pre-commit hook X-Git-Tag: develop-gem5-snapshot~569 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a8985a57f7bc1e63a27adfb09b149ff2fe4eaf5;p=gem5.git util: Fix an incorrect print statement in git pre-commit hook Change-Id: I13d0a705b6cfab654635380e2adbf36243344a62 Signed-off-by: Hoa Nguyen Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36516 Reviewed-by: Gabe Black Reviewed-by: Jason Lowe-Power Maintainer: Gabe Black Tested-by: kokoro --- diff --git a/util/git-pre-commit.py b/util/git-pre-commit.py index 7681b878b..ece246714 100755 --- a/util/git-pre-commit.py +++ b/util/git-pre-commit.py @@ -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)