diff --git a/utils_maintenance/clang_format_paths.py b/utils_maintenance/clang_format_paths.py
index a8f669709456aae7bc371e0a4f6c8b7358a696a3..bd8a99fae963f61d25aa59a0644cfdb2be15e568 100755
--- a/utils_maintenance/clang_format_paths.py
+++ b/utils_maintenance/clang_format_paths.py
@@ -173,7 +173,7 @@ def main():
         print("Version of clang-format is too old:", version, "<", VERSION_MIN)
         sys.exit(1)
     if version > VERSION_MAX_RECOMMENDED:
-        print("WARNING: Version of clang-format is too recent:", version, ">=", VERSION_MIN)
+        print("WARNING: Version of clang-format is too recent:", version, ">=", VERSION_MAX_RECOMMENDED)
         print("You may want to install clang-format-%d.%d, or use the precompiled libs repository." % (version[0], version[1]))
 
     args = argparse_create().parse_args()