Skip to content

Commit fa8dd95

Browse files
author
MarcoFalke
committed
bench: Use LogInfo instead of the deprecated alias LogPrintf
1 parent 93e4824 commit fa8dd95

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/bench/logging.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,21 @@ static void LogPrintfCategoryWithoutThreadNames(benchmark::Bench& bench)
6464
});
6565
}
6666

67-
static void LogPrintfWithThreadNames(benchmark::Bench& bench)
67+
static void LogWithThreadNames(benchmark::Bench& bench)
6868
{
69-
Logging(bench, {"-logthreadnames=1"}, [] { LogPrintf("%s\n", "test"); });
69+
Logging(bench, {"-logthreadnames=1"}, [] { LogInfo("%s\n", "test"); });
7070
}
7171

72-
static void LogPrintfWithoutThreadNames(benchmark::Bench& bench)
72+
static void LogWithoutThreadNames(benchmark::Bench& bench)
7373
{
74-
Logging(bench, {"-logthreadnames=0"}, [] { LogPrintf("%s\n", "test"); });
74+
Logging(bench, {"-logthreadnames=0"}, [] { LogInfo("%s\n", "test"); });
7575
}
7676

7777
static void LogWithoutWriteToFile(benchmark::Bench& bench)
7878
{
7979
// Disable writing the log to a file, as used for unit tests and fuzzing in `MakeNoLogFileContext`.
8080
Logging(bench, {"-nodebuglogfile", "-debug=1"}, [] {
81-
LogPrintf("%s\n", "test");
81+
LogInfo("%s\n", "test");
8282
LogDebug(BCLog::NET, "%s\n", "test");
8383
});
8484
}
@@ -89,6 +89,6 @@ BENCHMARK(LogWithDebug, benchmark::PriorityLevel::HIGH);
8989
BENCHMARK(LogWithoutDebug, benchmark::PriorityLevel::HIGH);
9090
BENCHMARK(LogPrintfCategoryWithThreadNames, benchmark::PriorityLevel::HIGH);
9191
BENCHMARK(LogPrintfCategoryWithoutThreadNames, benchmark::PriorityLevel::HIGH);
92-
BENCHMARK(LogPrintfWithThreadNames, benchmark::PriorityLevel::HIGH);
93-
BENCHMARK(LogPrintfWithoutThreadNames, benchmark::PriorityLevel::HIGH);
92+
BENCHMARK(LogWithThreadNames, benchmark::PriorityLevel::HIGH);
93+
BENCHMARK(LogWithoutThreadNames, benchmark::PriorityLevel::HIGH);
9494
BENCHMARK(LogWithoutWriteToFile, benchmark::PriorityLevel::HIGH);

0 commit comments

Comments
 (0)