mirror of
https://gitee.com/openharmony/useriam_user_auth_framework
synced 2024-11-27 09:50:45 +00:00
change name
Signed-off-by: mtf <matengfei19@huawei.com> Change-Id: I301b81af59e658058f4d96a0d1025e5e4d8b7ed2
This commit is contained in:
parent
e30e7cf4d2
commit
b5a67c03ad
@ -21,16 +21,16 @@ namespace OHOS {
|
||||
namespace UserIAM {
|
||||
namespace Common {
|
||||
#ifdef __FILE_NAME__
|
||||
#define FILE __FILE_NAME__
|
||||
#define IAM_LOG_FILE __FILE_NAME__
|
||||
#else
|
||||
#define FILE (__builtin_strrchr(__FILE__, '/') ? __builtin_strrchr(__FILE__, '/') + 1 : __FILE__)
|
||||
#define IAM_LOG_FILE (__builtin_strrchr(__FILE__, '/') ? __builtin_strrchr(__FILE__, '/') + 1 : __FILE__)
|
||||
#endif
|
||||
|
||||
#ifdef LOG_LABEL
|
||||
#undef LOG_LABEL
|
||||
#endif
|
||||
|
||||
#define ARGS(fmt, ...) "[%{public}s@%{public}s:%{public}d] " fmt, __FUNCTION__, FILE, __LINE__, ##__VA_ARGS__
|
||||
#define ARGS(fmt, ...) "[%{public}s@%{public}s:%{public}d] " fmt, __FUNCTION__, IAM_LOG_FILE, __LINE__, ##__VA_ARGS__
|
||||
#define IAM_LOGD(...) OHOS::HiviewDFX::HiLog::Debug(LOG_LABEL, ARGS(__VA_ARGS__))
|
||||
#define IAM_LOGI(...) OHOS::HiviewDFX::HiLog::Info(LOG_LABEL, ARGS(__VA_ARGS__))
|
||||
#define IAM_LOGW(...) OHOS::HiviewDFX::HiLog::Warn(LOG_LABEL, ARGS(__VA_ARGS__))
|
||||
|
Loading…
Reference in New Issue
Block a user