[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/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)