diff rvinterf/etmsync/fileio.c @ 289:244f08f58e51

fc-fsio: error decoding implemented
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 28 Feb 2014 23:12:52 +0000
parents 146e7bf3fa4e
children 69e8ae2b5ba2
line wrap: on
line diff
--- a/rvinterf/etmsync/fileio.c	Fri Feb 28 08:46:14 2014 +0000
+++ b/rvinterf/etmsync/fileio.c	Fri Feb 28 23:12:52 2014 +0000
@@ -41,7 +41,7 @@
 	if (rc)
 		return(rc);
 	if (rvi_msg[3]) {
-		printf("open fd: FFS error %d\n", rvi_msg[3]);
+		report_ffs_err("open fd", rvi_msg[3]);
 		return(ERROR_TARGET);
 	}
 	if (rvi_msg_len != 6) {
@@ -72,7 +72,7 @@
 	if (rc)
 		return(rc);
 	if (rvi_msg[3]) {
-		printf("read fd: FFS error %d\n", rvi_msg[3]);
+		report_ffs_err("read fd", rvi_msg[3]);
 		return(ERROR_TARGET);
 	}
 	if (rvi_msg_len < 6) {
@@ -101,7 +101,7 @@
 	if (rc)
 		return(rc);
 	if (rvi_msg[3]) {
-		printf("close fd: FFS error %d\n", rvi_msg[3]);
+		report_ffs_err("close fd", rvi_msg[3]);
 		return(ERROR_TARGET);
 	}
 	if (rvi_msg_len != 5) {
@@ -140,7 +140,7 @@
 	if (rc)
 		return(rc);
 	if (rvi_msg[3]) {
-		printf("read file: FFS error %d\n", rvi_msg[3]);
+		report_ffs_err("read file", rvi_msg[3]);
 		return(ERROR_TARGET);
 	}
 	if (rvi_msg_len < 6) {