From 7c07f70afdf12496cddf1e7f083feaf036541ae9 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 7 Aug 2025 17:08:38 +0200 Subject: [PATCH] fix: AlmaLinux doesn't seem to support `fmt::println` yet --- lib/libimhex/include/hex/helpers/logger.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/libimhex/include/hex/helpers/logger.hpp b/lib/libimhex/include/hex/helpers/logger.hpp index 32a1a5734..f046ca9d4 100644 --- a/lib/libimhex/include/hex/helpers/logger.hpp +++ b/lib/libimhex/include/hex/helpers/logger.hpp @@ -48,7 +48,7 @@ EXPORT_MODULE namespace hex::log { printPrefix(dest, ts, level, IMHEX_PROJECT_NAME); auto message = fmt::format(fmt, std::forward(args)...); - fmt::println(dest, "{}", message); + fmt::print(dest, "{}\n", message); std::fflush(dest); addLogEntry(IMHEX_PROJECT_NAME, level, std::move(message)); @@ -123,7 +123,8 @@ EXPORT_MODULE namespace hex::log { try { auto dest = impl::getDestination(); - fmt::println(dest, fmt, std::forward(args)...); + fmt::print(dest, fmt, std::forward(args)...); + fmt::print("\n"); std::fflush(dest); } catch (const std::exception&) { /* Ignore any exceptions, we can't do anything anyway */