[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_at.c b/mbtk/libgsw_lib/gsw_at.c
index fa34eda..6fe12e9 100755
--- a/mbtk/libgsw_lib/gsw_at.c
+++ b/mbtk/libgsw_lib/gsw_at.c
@@ -31,6 +31,8 @@
#define LOG_VERBOSE_LEVEL 8
#endif
+#define GSW_AT "[HAL][GSW_AT]"
+
#define LOGV(fmt, args ...) \
do{ \
char *file_ptr_1001 = __FILE__; \
@@ -42,7 +44,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_AT"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGI(fmt, args...) \
@@ -56,7 +58,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_AT"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGD(fmt, args...) \
@@ -70,7 +72,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_AT"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGW(fmt, args...) \
@@ -84,7 +86,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_AT"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGE(fmt, args...) \
@@ -98,7 +100,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_AT"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
diff --git a/mbtk/libgsw_lib/gsw_data.c b/mbtk/libgsw_lib/gsw_data.c
index e26e35b..c60077f 100755
--- a/mbtk/libgsw_lib/gsw_data.c
+++ b/mbtk/libgsw_lib/gsw_data.c
@@ -152,6 +152,8 @@
#define LOG_VERBOSE_LEVEL 8
#endif
+#define GSW_DATA "[HAL][GSW_DATA]"
+
#define LOGV(fmt, args ...) \
do{ \
char *file_ptr_1001 = __FILE__; \
@@ -163,7 +165,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_VERBOSE_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_VERBOSE_LEVEL, "%s#%s: "GSW_DATA"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGI(fmt, args...) \
@@ -177,7 +179,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_INFO_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_INFO_LEVEL, "%s#%s: "GSW_DATA"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGD(fmt, args...) \
@@ -191,7 +193,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_DEBUG_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_DEBUG_LEVEL, "%s#%s: "GSW_DATA"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGW(fmt, args...) \
@@ -205,7 +207,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_WARN_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_WARN_LEVEL, "%s#%s: "GSW_DATA"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGE(fmt, args...) \
@@ -219,7 +221,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_ERR_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_ERR_LEVEL, "%s#%s: "GSW_DATA"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
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,...);
diff --git a/mbtk/libgsw_lib/gsw_gnss.c b/mbtk/libgsw_lib/gsw_gnss.c
index 7beb0d1..6f2298b 100755
--- a/mbtk/libgsw_lib/gsw_gnss.c
+++ b/mbtk/libgsw_lib/gsw_gnss.c
@@ -33,6 +33,9 @@
#define LOG_VERBOSE_LEVEL 8
#endif
+#define GSW_GNSS "[HAL][GSW_GNSS]"
+
+
#define LOGV(fmt, args ...) \
do{ \
char *file_ptr_1001 = __FILE__; \
@@ -44,7 +47,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_GNSS"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGI(fmt, args...) \
@@ -58,7 +61,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_GNSS"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGD(fmt, args...) \
@@ -72,7 +75,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_GNSS"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGW(fmt, args...) \
@@ -86,7 +89,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_GNSS"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGE(fmt, args...) \
@@ -100,7 +103,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_GNSS"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
diff --git a/mbtk/libgsw_lib/gsw_gpio.c b/mbtk/libgsw_lib/gsw_gpio.c
index 9bd8a79..231ddd3 100755
--- a/mbtk/libgsw_lib/gsw_gpio.c
+++ b/mbtk/libgsw_lib/gsw_gpio.c
@@ -25,6 +25,8 @@
#define LOG_VERBOSE_LEVEL 8
#endif
+#define GSW_GPIO "[HAL][GSW_GPIO]"
+
#define LOGV(fmt, args ...) \
do{ \
char *file_ptr_1001 = __FILE__; \
@@ -36,7 +38,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_GPIO"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGI(fmt, args...) \
@@ -50,7 +52,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_GPIO"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGD(fmt, args...) \
@@ -64,7 +66,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_GPIO"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGW(fmt, args...) \
@@ -78,7 +80,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_GPIO"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGE(fmt, args...) \
@@ -92,7 +94,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_GPIO"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
diff --git a/mbtk/libgsw_lib/gsw_nw.c b/mbtk/libgsw_lib/gsw_nw.c
index e485574..18edcd9 100755
--- a/mbtk/libgsw_lib/gsw_nw.c
+++ b/mbtk/libgsw_lib/gsw_nw.c
@@ -351,6 +351,8 @@
#define LOG_VERBOSE_LEVEL 8
#endif
+#define GSW_NW "[HAL][GSW_NW]"
+
#define LOGV(fmt, args ...) \
do{ \
char *file_ptr_1001 = __FILE__; \
@@ -362,7 +364,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_VERBOSE_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_VERBOSE_LEVEL, "%s#%s: "GSW_NW"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGI(fmt, args...) \
@@ -376,7 +378,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_INFO_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_INFO_LEVEL, "%s#%s: "GSW_NW"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGD(fmt, args...) \
@@ -390,7 +392,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_DEBUG_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_DEBUG_LEVEL, "%s#%s: "GSW_NW"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGW(fmt, args...) \
@@ -404,7 +406,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_WARN_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_WARN_LEVEL, "%s#%s: "GSW_NW"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGE(fmt, args...) \
@@ -418,7 +420,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_ERR_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_ERR_LEVEL, "%s#%s: "GSW_NW"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
diff --git a/mbtk/libgsw_lib/gsw_oem_rw_interface.c b/mbtk/libgsw_lib/gsw_oem_rw_interface.c
index 6c60e98..e0d0877 100755
--- a/mbtk/libgsw_lib/gsw_oem_rw_interface.c
+++ b/mbtk/libgsw_lib/gsw_oem_rw_interface.c
@@ -31,6 +31,7 @@
#define LIB_PATH "/lib/libmbtk_lib.so"
+#define GSW_OEM_RW "[HAL][GSW_OEM_RW]"
#define StatFunc(x,y) stat(x,y)
@@ -45,7 +46,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_OEM_RW"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGI(fmt, args...) \
@@ -59,7 +60,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_OEM_RW"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGD(fmt, args...) \
@@ -73,7 +74,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_OEM_RW"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGW(fmt, args...) \
@@ -87,7 +88,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_OEM_RW"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGE(fmt, args...) \
@@ -101,7 +102,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_OEM_RW"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
typedef void (*mbtk_log)(int level, const char *format,...);
diff --git a/mbtk/libgsw_lib/gsw_pm.c b/mbtk/libgsw_lib/gsw_pm.c
index abf1a0d..9a28e71 100755
--- a/mbtk/libgsw_lib/gsw_pm.c
+++ b/mbtk/libgsw_lib/gsw_pm.c
@@ -31,6 +31,8 @@
#define LOG_VERBOSE_LEVEL 8
#endif
+#define GSW_PM "[HAL][GSW_PM]"
+
#define LOGV(fmt, args ...) \
do{ \
char *file_ptr_1001 = __FILE__; \
@@ -42,7 +44,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_PM"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGI(fmt, args...) \
@@ -56,7 +58,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_PM"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGD(fmt, args...) \
@@ -70,7 +72,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_PM"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGW(fmt, args...) \
@@ -84,7 +86,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_PM"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGE(fmt, args...) \
@@ -98,7 +100,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_PM"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
diff --git a/mbtk/libgsw_lib/gsw_sim.c b/mbtk/libgsw_lib/gsw_sim.c
index b8cfa52..cd44304 100755
--- a/mbtk/libgsw_lib/gsw_sim.c
+++ b/mbtk/libgsw_lib/gsw_sim.c
@@ -107,6 +107,8 @@
#define LOG_VERBOSE_LEVEL 8
#endif
+#define GSW_SIM "[HAL][GSW_SIM]"
+
#define LOGV(fmt, args ...) \
do{ \
char *file_ptr_1001 = __FILE__; \
@@ -118,7 +120,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_VERBOSE_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_VERBOSE_LEVEL, "%s#%s: "GSW_SIM"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGI(fmt, args...) \
@@ -132,7 +134,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_INFO_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_INFO_LEVEL, "%s#%s: "GSW_SIM"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGD(fmt, args...) \
@@ -146,7 +148,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_DEBUG_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_DEBUG_LEVEL, "%s#%s: "GSW_SIM"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGW(fmt, args...) \
@@ -160,7 +162,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_WARN_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_WARN_LEVEL, "%s#%s: "GSW_SIM"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGE(fmt, args...) \
@@ -174,7 +176,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_ERR_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_ERR_LEVEL, "%s#%s: "GSW_SIM"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
diff --git a/mbtk/libgsw_lib/gsw_sms.c b/mbtk/libgsw_lib/gsw_sms.c
index 403bd4d..e33def8 100755
--- a/mbtk/libgsw_lib/gsw_sms.c
+++ b/mbtk/libgsw_lib/gsw_sms.c
@@ -151,6 +151,7 @@
#ifndef LOG_VERBOSE_LEVEL
#define LOG_VERBOSE_LEVEL 8
#endif
+#define GSW_SMS "[HAL][GSW_SMS]"
#define LOGV(fmt, args ...) \
do{ \
@@ -163,7 +164,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_VERBOSE_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_VERBOSE_LEVEL, "%s#%s: "GSW_SMS"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGI(fmt, args...) \
@@ -177,7 +178,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_INFO_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_INFO_LEVEL, "%s#%s: "GSW_SMS"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGD(fmt, args...) \
@@ -191,7 +192,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_DEBUG_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_DEBUG_LEVEL, "%s#%s: "GSW_SMS"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGW(fmt, args...) \
@@ -205,7 +206,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_WARN_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_WARN_LEVEL, "%s#%s: "GSW_SMS"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGE(fmt, args...) \
@@ -219,7 +220,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_ERR_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_ERR_LEVEL, "%s#%s: "GSW_SMS"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
diff --git a/mbtk/libgsw_lib/gsw_tee.c b/mbtk/libgsw_lib/gsw_tee.c
index 2ba8ece..0c92832 100755
--- a/mbtk/libgsw_lib/gsw_tee.c
+++ b/mbtk/libgsw_lib/gsw_tee.c
@@ -24,6 +24,8 @@
#define LOG_VERBOSE_LEVEL 8
#endif
+#define GSW_TEE "[HAL][GSW_TEE]"
+
#define LOGV(fmt, args ...) \
do{ \
char *file_ptr_1001 = __FILE__; \
@@ -35,7 +37,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_VERBOSE_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_VERBOSE_LEVEL, "%s#%s: "GSW_TEE"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGI(fmt, args...) \
@@ -49,7 +51,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_INFO_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_INFO_LEVEL, "%s#%s: "GSW_TEE"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGD(fmt, args...) \
@@ -63,7 +65,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_DEBUG_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_DEBUG_LEVEL, "%s#%s: "GSW_TEE"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGW(fmt, args...) \
@@ -77,7 +79,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_WARN_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_WARN_LEVEL, "%s#%s: "GSW_TEE"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGE(fmt, args...) \
@@ -91,7 +93,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_ERR_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_ERR_LEVEL, "%s#%s: "GSW_TEE"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
struct test_ctx {
diff --git a/mbtk/libgsw_lib/gsw_uart.c b/mbtk/libgsw_lib/gsw_uart.c
index 5b9738c..718ca47 100755
--- a/mbtk/libgsw_lib/gsw_uart.c
+++ b/mbtk/libgsw_lib/gsw_uart.c
@@ -29,6 +29,9 @@
#define LOG_VERBOSE_LEVEL 8
#endif
+#define GSW_UART "[HAL][GSW_UART]"
+
+
#define LOGV(fmt, args ...) \
do{ \
char *file_ptr_1001 = __FILE__; \
@@ -40,7 +43,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_UART"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGI(fmt, args...) \
@@ -54,7 +57,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_UART"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGD(fmt, args...) \
@@ -68,7 +71,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_UART"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGW(fmt, args...) \
@@ -82,7 +85,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_UART"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGE(fmt, args...) \
@@ -96,7 +99,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_UART"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
typedef void (*mbtk_log)(int level, const char *format,...);
diff --git a/mbtk/libgsw_lib/gsw_voice.c b/mbtk/libgsw_lib/gsw_voice.c
index a6f0883..c6e5ac3 100755
--- a/mbtk/libgsw_lib/gsw_voice.c
+++ b/mbtk/libgsw_lib/gsw_voice.c
@@ -233,6 +233,8 @@
#define LOG_VERBOSE_LEVEL 8
#endif
+#define GSW_VOICE "[HAL][GSW_VOICE]"
+
#define LOGV(fmt, args ...) \
do{ \
char *file_ptr_1001 = __FILE__; \
@@ -244,7 +246,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_VERBOSE_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_VERBOSE_LEVEL, "%s#%s: "GSW_VOICE"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGI(fmt, args...) \
@@ -258,7 +260,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_INFO_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_INFO_LEVEL, "%s#%s: "GSW_VOICE"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGD(fmt, args...) \
@@ -272,7 +274,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_DEBUG_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_DEBUG_LEVEL, "%s#%s: "GSW_VOICE"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGW(fmt, args...) \
@@ -286,7 +288,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_WARN_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_WARN_LEVEL, "%s#%s: "GSW_VOICE"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGE(fmt, args...) \
@@ -300,7 +302,7 @@
break; \
ptr_1001--; \
} \
- mbtk_log(LOG_ERR_LEVEL, "%s#%s: " fmt, ptr_1001 + 1, line_1001, ##args); \
+ mbtk_log(LOG_ERR_LEVEL, "%s#%s: "GSW_VOICE"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
static int mbtk_rtp_api_import()
diff --git a/mbtk/libgsw_lib/libgsw_ota.c b/mbtk/libgsw_lib/libgsw_ota.c
index 93d1a6a..58dfae3 100755
--- a/mbtk/libgsw_lib/libgsw_ota.c
+++ b/mbtk/libgsw_lib/libgsw_ota.c
@@ -37,6 +37,7 @@
#define LIB_PATH "/lib/libmbtk_lib.so"
+#define GSW_OTA "[HAL][GSW_OTA]"
#define StatFunc(x,y) stat(x,y)
@@ -51,7 +52,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_OTA"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGI(fmt, args...) \
@@ -65,7 +66,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_OTA"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGD(fmt, args...) \
@@ -79,7 +80,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_OTA"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGW(fmt, args...) \
@@ -93,7 +94,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_OTA"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)
#define LOGE(fmt, args...) \
@@ -107,7 +108,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_OTA"" fmt, ptr_1001 + 1, line_1001, ##args); \
} while(0)