Fix log format 57/315657/2 accepted/tizen/unified/20240808.160358 accepted/tizen/unified/dev/20240809.091500 accepted/tizen/unified/toolchain/20240812.133349 accepted/tizen/unified/x/20240809.012928 accepted/tizen/unified/x/20240809.015616 accepted/tizen/unified/x/asan/20240813.231830
authorJaechul Lee <jcsing.lee@samsung.com>
Tue, 6 Aug 2024 03:18:43 +0000 (12:18 +0900)
committerJaechul Lee <jcsing.lee@samsung.com>
Wed, 7 Aug 2024 05:29:37 +0000 (14:29 +0900)
[Version] 0.1.23
[Issue Type] Update

Change-Id: I98420a25bd745b15a42d3861d7fbe11d34db72e6
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
packaging/audio-hal-bcm2837.spec
tizen-audio-internal.h

index 5213c59c5eecab44a44bbcf1c5b140c9f03fdcac..e00ce2036be9f7a986dfc896910563d194027cf2 100644 (file)
@@ -1,6 +1,6 @@
 Name:       audio-hal-bcm2837
 Summary:    TIZEN Audio HAL for BCM2837
-Version:    0.1.22
+Version:    0.1.23
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index 212d147641c39e5150b5ab46151aa006b3676b4b..18d4563cbd313c66071be836f770b675fb343fdd 100644 (file)
 #undef DLOG_TAG
 #endif
 #define DLOG_TAG "AUDIO_HAL"
-#define AUDIO_LOG_ERROR(...)            dlog_print(DLOG_ERROR, DLOG_TAG, __VA_ARGS__)
-#define AUDIO_LOG_WARN(...)             dlog_print(DLOG_WARN, DLOG_TAG, __VA_ARGS__)
-#define AUDIO_LOG_INFO(...)             dlog_print(DLOG_INFO, DLOG_TAG, __VA_ARGS__)
-#define AUDIO_LOG_DEBUG(...)            dlog_print(DLOG_DEBUG, DLOG_TAG, __VA_ARGS__)
-#define AUDIO_LOG_VERBOSE(...)          dlog_print(DLOG_DEBUG, DLOG_TAG, __VA_ARGS__)
+
+#define __MODULE__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
+#define AUDIO_LOGD(prio, tag, fmt, ...) do { \
+            dlog_print(prio, tag, "%s: %s(%d) > " fmt, __MODULE__, __func__, __LINE__, ##__VA_ARGS__); \
+       } while (0)
+
+#define AUDIO_LOG_ERROR(...)            AUDIO_LOGD(DLOG_ERROR, DLOG_TAG, __VA_ARGS__)
+#define AUDIO_LOG_WARN(...)             AUDIO_LOGD(DLOG_WARN, DLOG_TAG, __VA_ARGS__)
+#define AUDIO_LOG_INFO(...)             AUDIO_LOGD(DLOG_INFO, DLOG_TAG, __VA_ARGS__)
+#define AUDIO_LOG_DEBUG(...)            AUDIO_LOGD(DLOG_DEBUG, DLOG_TAG, __VA_ARGS__)
+#define AUDIO_LOG_VERBOSE(...)          AUDIO_LOGD(DLOG_DEBUG, DLOG_TAG, __VA_ARGS__)
 #else
 #define AUDIO_LOG_ERROR(...)            fprintf(stderr, __VA_ARGS__)
 #define AUDIO_LOG_WARN(...)             fprintf(stderr, __VA_ARGS__)