diff options
author | memchr <[email protected]> | 2023-09-20 07:26:20 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2023-09-20 08:26:20 +0100 |
commit | 6594b50e57935dd66930ccd35dba7a1b4131399d (patch) | |
tree | 17d4fa7aabf0e447c7171346c5b851c999093149 /src/managers | |
parent | d8d0cd75c2db16a14086e1d5119ed937a60c701e (diff) | |
download | Hyprland-6594b50e57935dd66930ccd35dba7a1b4131399d.tar.gz Hyprland-6594b50e57935dd66930ccd35dba7a1b4131399d.zip |
logging/format: use std::format_string to catch formatting string errors at compile time (#3377)
* fix(log): use constexpr format string
* deprecate getFormat
Diffstat (limited to 'src/managers')
-rw-r--r-- | src/managers/HookSystemManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/managers/HookSystemManager.cpp b/src/managers/HookSystemManager.cpp index b82d6f83..567286d6 100644 --- a/src/managers/HookSystemManager.cpp +++ b/src/managers/HookSystemManager.cpp @@ -57,7 +57,7 @@ void CHookSystemManager::emit(const std::vector<SCallbackFNPtr>* callbacks, std: } catch (std::exception& e) { // TODO: this works only once...? faultyHandles.push_back(cb.handle); - Debug::log(ERR, " [hookSystem] Hook from plugin {:x} caused a SIGSEGV, queueing for unloading.", (uintptr_t)cb.handle); + Debug::log(ERR, "[hookSystem] Hook from plugin {:x} caused a SIGSEGV, queueing for unloading.", (uintptr_t)cb.handle); } } @@ -73,7 +73,7 @@ std::vector<SCallbackFNPtr>* CHookSystemManager::getVecForEvent(const std::strin if (IT != m_lpRegisteredHooks.end()) return &IT->second; - Debug::log(LOG, " [hookSystem] New hook event registered: {}", event); + Debug::log(LOG, "[hookSystem] New hook event registered: {}", event); return &m_lpRegisteredHooks.emplace_back(std::make_pair<>(event, std::vector<SCallbackFNPtr>{})).second; }
\ No newline at end of file |