FreeCalypso > hg > freecalypso-tools
comparison rvinterf/etmsync/fsmisc.c @ 233:e434df27e4d9
fc-fsio format command: don't stop scripts on NOPREFORMAT error,
i.e., if the FFS is already formatted
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 12 Aug 2017 17:31:50 +0000 |
parents | 869ce9f61a67 |
children |
comparison
equal
deleted
inserted
replaced
232:353218c38996 | 233:e434df27e4d9 |
---|---|
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <string.h> | 9 #include <string.h> |
10 #include <strings.h> | 10 #include <strings.h> |
11 #include "etm.h" | 11 #include "etm.h" |
12 #include "ffs.h" | 12 #include "ffs.h" |
13 #include "ffserr.h" | |
13 #include "tmffs2.h" | 14 #include "tmffs2.h" |
14 #include "limits.h" | 15 #include "limits.h" |
15 #include "ffslimits.h" | 16 #include "ffslimits.h" |
16 #include "localtypes.h" | 17 #include "localtypes.h" |
17 #include "localstruct.h" | 18 #include "localstruct.h" |
47 printf("error: TMFFS_FORMAT response has wrong length\n"); | 48 printf("error: TMFFS_FORMAT response has wrong length\n"); |
48 return(ERROR_TARGET); | 49 return(ERROR_TARGET); |
49 } | 50 } |
50 if (rvi_msg[3]) { | 51 if (rvi_msg[3]) { |
51 report_ffs_err("format", rvi_msg[3]); | 52 report_ffs_err("format", rvi_msg[3]); |
52 return(ERROR_TARGET); | 53 if (rvi_msg[3] == TMFFS_ERR_NOPREFORMAT) |
54 return(0); /* do not stop scripts */ | |
55 else | |
56 return(ERROR_TARGET); | |
53 } | 57 } |
54 return(0); | 58 return(0); |
55 } | 59 } |
56 | 60 |
57 cmd_preformat() | 61 cmd_preformat() |