diff --git a/toolchain/install/install_paths_test.cpp b/toolchain/install/install_paths_test.cpp index ba42b2975303..a436879ba513 100644 --- a/toolchain/install/install_paths_test.cpp +++ b/toolchain/install/install_paths_test.cpp @@ -38,7 +38,7 @@ class InstallPathsTest : public ::testing::Test { // check that the path accessors point to the right kind of file or // directory. auto TestInstallPaths(const InstallPaths& paths) -> void { - SCOPED_TRACE(llvm::formatv("Install prefix: '%s'", paths.prefix())); + SCOPED_TRACE(llvm::formatv("Install prefix: '{0}'", paths.prefix())); // Grab a the prefix into a string to make it easier to use in the test. std::string prefix = paths.prefix().str();