Skip to content

Commit

Permalink
Make clang-format happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Brawl345 committed Sep 7, 2022
1 parent b5303dc commit b76c431
Showing 1 changed file with 18 additions and 24 deletions.
42 changes: 18 additions & 24 deletions src/utils/logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit b76c431

Please sign in to comment.