summaryrefslogtreecommitdiff
path: root/loader/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'loader/log.c')
-rw-r--r--loader/log.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/loader/log.c b/loader/log.c
index 2474317b..2a4ab062 100644
--- a/loader/log.c
+++ b/loader/log.c
@@ -36,6 +36,10 @@
#include "loader_environment.h"
#include "settings.h"
#include "vk_loader_platform.h"
+#ifdef TIZEN_PLATFORM
+#include <dlog/dlog.h>
+#define LOG_TAG "VK_LOADER"
+#endif
uint32_t g_loader_debug = 0;
@@ -230,6 +234,19 @@ void loader_log(const struct loader_instance *inst, VkFlags msg_type, int32_t ms
OutputDebugString(msg);
OutputDebugString("\n");
#endif
+
+#ifdef TIZEN_PLATFORM
+ if ((msg_type & VULKAN_LOADER_ERROR_BIT) != 0) {
+ dlog_print(DLOG_ERROR, LOG_TAG, "%s %s\n", cmd_line_msg, msg);
+ } else if ((msg_type & VULKAN_LOADER_WARN_BIT) != 0) {
+ dlog_print(DLOG_WARN, LOG_TAG, "%s %s\n", cmd_line_msg, msg);
+ } else if ((msg_type & VULKAN_LOADER_INFO_BIT) != 0) {
+ dlog_print(DLOG_INFO, LOG_TAG, "%s %s\n", cmd_line_msg, msg);
+ } else if ((msg_type & VULKAN_LOADER_DEBUG_BIT) != 0) {
+ dlog_print(DLOG_DEBUG, LOG_TAG, "%s %s\n", cmd_line_msg, msg);
+ }
+#endif
+
}
void loader_log_asm_function_not_supported(const struct loader_instance *inst, VkFlags msg_type, int32_t msg_code,