FreeCalypso > hg > freecalypso-sw
comparison rvinterf/etmsync/fsbasics.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 | 517e8a428fde |
children | 3dd74b16df82 |
comparison
equal
deleted
inserted
replaced
288:e33d71e9033f | 289:244f08f58e51 |
---|---|
61 dp += slen + 1; | 61 dp += slen + 1; |
62 rc = etm_pkt_exch(cmdpkt, dp - cmdpkt - 1); | 62 rc = etm_pkt_exch(cmdpkt, dp - cmdpkt - 1); |
63 if (rc) | 63 if (rc) |
64 return(rc); | 64 return(rc); |
65 if (rvi_msg[3]) { | 65 if (rvi_msg[3]) { |
66 printf("opendir: FFS error %d\n", rvi_msg[3]); | 66 report_ffs_err("opendir", rvi_msg[3]); |
67 return(ERROR_TARGET); | 67 return(ERROR_TARGET); |
68 } | 68 } |
69 if (rvi_msg_len != 11 || rvi_msg[5] != 4) { | 69 if (rvi_msg_len != 11 || rvi_msg[5] != 4) { |
70 printf("error: opendir response has wrong length\n"); | 70 printf("error: opendir response has wrong length\n"); |
71 return(ERROR_TARGET); | 71 return(ERROR_TARGET); |
89 cmdpkt[8] = TMFFS_STRING_SIZE; | 89 cmdpkt[8] = TMFFS_STRING_SIZE; |
90 rc = etm_pkt_exch(cmdpkt, 8); | 90 rc = etm_pkt_exch(cmdpkt, 8); |
91 if (rc) | 91 if (rc) |
92 return(rc); | 92 return(rc); |
93 if (rvi_msg[3]) { | 93 if (rvi_msg[3]) { |
94 printf("readdir: FFS error %d\n", rvi_msg[3]); | 94 report_ffs_err("readdir", rvi_msg[3]); |
95 return(ERROR_TARGET); | 95 return(ERROR_TARGET); |
96 } | 96 } |
97 if (rvi_msg_len < 14) { | 97 if (rvi_msg_len < 14) { |
98 malformed: printf("error: readdir response is malformed\n"); | 98 malformed: printf("error: readdir response is malformed\n"); |
99 return(ERROR_TARGET); | 99 return(ERROR_TARGET); |
153 dp += slen + 1; | 153 dp += slen + 1; |
154 rc = etm_pkt_exch(cmdpkt, dp - cmdpkt - 1); | 154 rc = etm_pkt_exch(cmdpkt, dp - cmdpkt - 1); |
155 if (rc) | 155 if (rc) |
156 return(rc); | 156 return(rc); |
157 if (rvi_msg[3]) { | 157 if (rvi_msg[3]) { |
158 printf("xlstat: FFS error %d\n", rvi_msg[3]); | 158 report_ffs_err("xlstat", rvi_msg[3]); |
159 return(ERROR_TARGET); | 159 return(ERROR_TARGET); |
160 } | 160 } |
161 if (rvi_msg_len != 30 || rvi_msg[4] != 24) { | 161 if (rvi_msg_len != 30 || rvi_msg[4] != 24) { |
162 printf("error: xlstat response has wrong length\n"); | 162 printf("error: xlstat response has wrong length\n"); |
163 return(ERROR_TARGET); | 163 return(ERROR_TARGET); |