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