From ec0f75862e6791eade487f0dc7d4d0a8c91b9ba5 Mon Sep 17 00:00:00 2001 From: Fabian Jahr Date: Tue, 22 Apr 2025 23:20:31 +0200 Subject: [PATCH] refactor: Modernize logging in util/asmap.cpp --- src/util/asmap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/asmap.cpp b/src/util/asmap.cpp index bd6852645db..7c5f6eb5d4b 100644 --- a/src/util/asmap.cpp +++ b/src/util/asmap.cpp @@ -200,7 +200,7 @@ std::vector DecodeAsmap(fs::path path) FILE *filestr = fsbridge::fopen(path, "rb"); AutoFile file{filestr}; if (file.IsNull()) { - LogPrintf("Failed to open asmap file from disk\n"); + LogWarning("Failed to open asmap file from disk"); return bits; } file.seek(0, SEEK_END); @@ -215,7 +215,7 @@ std::vector DecodeAsmap(fs::path path) } } if (!SanityCheckASMap(bits, 128)) { - LogPrintf("Sanity check of asmap file %s failed\n", fs::quoted(fs::PathToString(path))); + LogWarning("Sanity check of asmap file %s failed", fs::quoted(fs::PathToString(path))); return {}; } return bits;