FreeCalypso > hg > freecalypso-sw
diff rvinterf/etmsync/fileio.c @ 286:146e7bf3fa4e
fc-fsio: fd debug commands implemented
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Fri, 28 Feb 2014 06:45:10 +0000 |
parents | bb28ba9e82c5 |
children | 244f08f58e51 |
line wrap: on
line diff
--- a/rvinterf/etmsync/fileio.c Fri Feb 28 06:16:02 2014 +0000 +++ b/rvinterf/etmsync/fileio.c Fri Feb 28 06:45:10 2014 +0000 @@ -60,9 +60,9 @@ int rc, sz; if (rdsize > MAX_READ_DATA) { - fprintf(stderr, - "BUG: attempt to read more than possible per TMFFS2 protocol\n"); - exit(ERROR_BUG); + printf("error: # of bytes to read may not exceed %d\n", + MAX_READ_DATA); + return(ERROR_USAGE); } cmdpkt[1] = ETM_FFS2; cmdpkt[2] = TMFFS_READ; @@ -125,9 +125,9 @@ return(ERROR_USAGE); } if (rdsize > MAX_READ_DATA) { - fprintf(stderr, - "BUG: attempt to read more than possible per TMFFS2 protocol\n"); - exit(ERROR_BUG); + printf("error: # of bytes to read may not exceed %d\n", + MAX_READ_DATA); + return(ERROR_USAGE); } dp = cmdpkt + 1; *dp++ = ETM_FFS2;