Minor .clang-format changes and apply to logger.h
This commit is contained in:
@ -56,6 +56,7 @@ IncludeCategories:
|
||||
IndentCaseLabels: true
|
||||
IndentWidth: 4
|
||||
IndentWrappedFunctionNames: false
|
||||
IndentPPDirectives: BeforeHash
|
||||
KeepEmptyLinesAtTheStartOfBlocks: true
|
||||
MacroBlockBegin: ''
|
||||
MacroBlockEnd: ''
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
#include "logger.h"
|
||||
|
||||
#if defined(__ARM_ARCH_7A__)
|
||||
#define long long long
|
||||
#define long long long
|
||||
#endif
|
||||
|
||||
enum
|
||||
|
||||
@ -2,23 +2,24 @@
|
||||
#include <android/log.h>
|
||||
|
||||
#ifndef BARESIP_LOGGER_H
|
||||
#define BARESIP_LOGGER_H
|
||||
|
||||
#define LOG_TAG "Baresip Lib"
|
||||
#define BARESIP_LOGGER_H
|
||||
|
||||
#define LOGD(...) \
|
||||
#define LOG_TAG "Baresip Lib"
|
||||
|
||||
#define LOGD(...) \
|
||||
if (log_level_get() < LEVEL_INFO) \
|
||||
((void)__android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__))
|
||||
|
||||
#define LOGI(...) \
|
||||
#define LOGI(...) \
|
||||
if (log_level_get() < LEVEL_WARN) \
|
||||
((void)__android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__))
|
||||
|
||||
#define LOGW(...) \
|
||||
#define LOGW(...) \
|
||||
if (log_level_get() < LEVEL_ERROR) \
|
||||
((void)__android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__))
|
||||
|
||||
#define LOGE(...) \
|
||||
#define LOGE(...) \
|
||||
if (log_level_get() <= LEVEL_ERROR) \
|
||||
((void)__android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user