From b76c4319e886409cef053e040d1f375fb7f3f892 Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Wed, 7 Sep 2022 19:31:05 +0200 Subject: [PATCH] Make clang-format happy --- src/utils/logger.c | 42 ++++++++++++++++++------------------------ 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/src/utils/logger.c b/src/utils/logger.c index f8f68d0..8f14235 100644 --- a/src/utils/logger.c +++ b/src/utils/logger.c @@ -9,34 +9,28 @@ uint32_t cafeLogInit = false; uint32_t udpLogInit = false; #endif // DEBUG -void initLogging() -{ +void initLogging() { #ifdef DEBUG - if (!(moduleLogInit = WHBLogModuleInit())) - { - cafeLogInit = WHBLogCafeInit(); - udpLogInit = WHBLogUdpInit(); - } + if (!(moduleLogInit = WHBLogModuleInit())) { + cafeLogInit = WHBLogCafeInit(); + udpLogInit = WHBLogUdpInit(); + } #endif // DEBUG } -void deinitLogging() -{ +void deinitLogging() { #ifdef DEBUG - if (moduleLogInit) - { - WHBLogModuleDeinit(); - moduleLogInit = false; - } - if (cafeLogInit) - { - WHBLogCafeDeinit(); - cafeLogInit = false; - } - if (udpLogInit) - { - WHBLogUdpDeinit(); - udpLogInit = false; - } + if (moduleLogInit) { + WHBLogModuleDeinit(); + moduleLogInit = false; + } + if (cafeLogInit) { + WHBLogCafeDeinit(); + cafeLogInit = false; + } + if (udpLogInit) { + WHBLogUdpDeinit(); + udpLogInit = false; + } #endif // DEBUG }