[Feature][T108][task-view-1567]  add  GSW hal api log tag

Only Configure: No
Affected branch: GSW_V1453
Affected module: LOG
Is it affected on IC: only ASR
Self-test: yes
Doc Update: no

Change-Id: Ib0291b9ea4aeaed5a85fd07e8a6aacc8a686ab1c
diff --git a/mbtk/libgsw_lib/gsw_ecall.c b/mbtk/libgsw_lib/gsw_ecall.c
index e2c6d8f..88c73dd 100755
--- a/mbtk/libgsw_lib/gsw_ecall.c
+++ b/mbtk/libgsw_lib/gsw_ecall.c
@@ -32,6 +32,8 @@
 #define LOG_VERBOSE_LEVEL 8

 #endif

 

+#define GSW_ECALL "[HAL][GSW_ECALL]"

+

 #define LOGV(fmt, args ...) \

     do{ \

         char *file_ptr_1001 = __FILE__; \

@@ -43,7 +45,7 @@
                  break; \

             ptr_1001--; \

         } \

-        fun_ptr_log(LOG_VERBOSE_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \

+        fun_ptr_log(LOG_VERBOSE_LEVEL, "%s#%s: "GSW_ECALL"" fmt, ptr_1001 + 1, line_1001, ##args); \

     } while(0)

 

 #define LOGI(fmt, args...) \

@@ -57,7 +59,7 @@
                  break; \

             ptr_1001--; \

         } \

-        fun_ptr_log(LOG_INFO_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \

+        fun_ptr_log(LOG_INFO_LEVEL, "%s#%s: "GSW_ECALL"" fmt, ptr_1001 + 1, line_1001, ##args); \

     } while(0)

 

 #define LOGD(fmt, args...) \

@@ -71,7 +73,7 @@
                  break; \

             ptr_1001--; \

         } \

-        fun_ptr_log(LOG_DEBUG_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \

+        fun_ptr_log(LOG_DEBUG_LEVEL, "%s#%s: "GSW_ECALL"" fmt, ptr_1001 + 1, line_1001, ##args); \

     } while(0)

 

 #define LOGW(fmt, args...) \

@@ -85,7 +87,7 @@
                  break; \

             ptr_1001--; \

         } \

-        fun_ptr_log(LOG_WARN_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \

+        fun_ptr_log(LOG_WARN_LEVEL, "%s#%s: "GSW_ECALL"" fmt, ptr_1001 + 1, line_1001, ##args); \

     } while(0)

 

 #define LOGE(fmt, args...) \

@@ -99,7 +101,7 @@
                  break; \

             ptr_1001--; \

         } \

-        fun_ptr_log(LOG_ERR_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \

+        fun_ptr_log(LOG_ERR_LEVEL, "%s#%s: "GSW_ECALL"" fmt, ptr_1001 + 1, line_1001, ##args); \

     } while(0)

 

 typedef void (*mbtk_log)(int level, const char *format,...);