[Feature][T106][task-view-1450]Add the prefix +emmc to the output result
Only Configure:No
Affected branch:master
Affected module:at-factory
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Change-Id: I1d45c07ee8e88d86e05587228df5dd0fab430af5
(cherry picked from commit 3c30fcc6ede54250c5e7f0098098853ca135d117)
(cherry picked from commit df8d928db5e2b5608c3cd4e3485230fc624c3cbf)
diff --git a/cap/zx297520v3/src/lynq/lib/liblynq-at-factory/liblynq-at-factory.cpp b/cap/zx297520v3/src/lynq/lib/liblynq-at-factory/liblynq-at-factory.cpp
index fbd5a5c..bb3fd64 100755
--- a/cap/zx297520v3/src/lynq/lib/liblynq-at-factory/liblynq-at-factory.cpp
+++ b/cap/zx297520v3/src/lynq/lib/liblynq-at-factory/liblynq-at-factory.cpp
@@ -192,7 +192,7 @@
//write data
if (write(fd, write_buf, data_size) != data_size) {
ALOGE("Write failed");
- handle_output("Write failed", strlen("Write failed"), Response);
+ handle_output("+emmc: Write failed", strlen("+emmc: Write failed"), Response);
close(fd);
free(write_buf);
return -1;
@@ -223,7 +223,7 @@
if(read(fd, read_buf, data_size) != data_size)
{
ALOGE("Read failed");
- handle_output("Read failed", strlen("Read failed"), Response);
+ handle_output("+emmc: Read failed", strlen("+emmc: Read failed"), Response);
free(write_buf);
free(read_buf);
close(fd);
@@ -233,14 +233,14 @@
//check data
if (memcmp(write_buf, read_buf, data_size) == 0) {
ALOGE("Data verification success!,");
- handle_output("emmc write/read success", strlen("emmc write/read success"), Response);
+ handle_output("+emmc: emmc write/read success", strlen("+emmc: emmc write/read success"), Response);
close(fd);
free(write_buf);
free(read_buf);
return 0;
} else {
ALOGE("Data verification failed!");
- handle_output("Data verification failed!", strlen("Data verification failed!"), Response);
+ handle_output("+emmc: Data verification failed!", strlen("+emmc: Data verification failed!"), Response);
close(fd);
free(write_buf);
free(read_buf);