File tree Expand file tree Collapse file tree 1 file changed +18
-24
lines changed
Expand file tree Collapse file tree 1 file changed +18
-24
lines changed Original file line number Diff line number Diff line change @@ -9,34 +9,28 @@ uint32_t cafeLogInit = false;
99uint32_t udpLogInit = false;
1010#endif // DEBUG
1111
12- void initLogging ()
13- {
12+ void initLogging () {
1413#ifdef DEBUG
15- if (!(moduleLogInit = WHBLogModuleInit ()))
16- {
17- cafeLogInit = WHBLogCafeInit ();
18- udpLogInit = WHBLogUdpInit ();
19- }
14+ if (!(moduleLogInit = WHBLogModuleInit ())) {
15+ cafeLogInit = WHBLogCafeInit ();
16+ udpLogInit = WHBLogUdpInit ();
17+ }
2018#endif // DEBUG
2119}
2220
23- void deinitLogging ()
24- {
21+ void deinitLogging () {
2522#ifdef DEBUG
26- if (moduleLogInit )
27- {
28- WHBLogModuleDeinit ();
29- moduleLogInit = false;
30- }
31- if (cafeLogInit )
32- {
33- WHBLogCafeDeinit ();
34- cafeLogInit = false;
35- }
36- if (udpLogInit )
37- {
38- WHBLogUdpDeinit ();
39- udpLogInit = false;
40- }
23+ if (moduleLogInit ) {
24+ WHBLogModuleDeinit ();
25+ moduleLogInit = false;
26+ }
27+ if (cafeLogInit ) {
28+ WHBLogCafeDeinit ();
29+ cafeLogInit = false;
30+ }
31+ if (udpLogInit ) {
32+ WHBLogUdpDeinit ();
33+ udpLogInit = false;
34+ }
4135#endif // DEBUG
4236}
You can’t perform that action at this time.
0 commit comments