comparison src/cs/drivers/drv_app/ffs/board/effs.c @ 0:945cf7f506b2

src/cs: chipsetsw import from tcs211-fcmodem binary blobs and LCD demo files have been excluded, all line endings are LF only
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 25 Sep 2016 22:50:11 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:945cf7f506b2
1 /* This file is autogenerated --- do not edit. */
2
3 #include "ffs/ffs.h"
4
5 char *ffs_strerror(effs_t error)
6 {
7 switch (error) {
8 case EFFS_OK: return "ok"; /* 0 */
9 case EFFS_NODEVICE: return "flash device unknown"; /* -1 */
10 case EFFS_CORRUPTED: return "filesystem corrupted!?"; /* -2 */
11 case EFFS_NOPREFORMAT: return "ffs not preformatted"; /* -3 */
12 case EFFS_NOFORMAT: return "ffs not formatted"; /* -4 */
13 case EFFS_BADFORMAT: return "incompatible ffs version, re-format needed"; /* -5 */
14 case EFFS_MAGIC: return "bad magic"; /* -6 */
15 case EFFS_AGAIN: return "not ready, try again later"; /* -7 */
16 case EFFS_NOSYS: return "function not implemented"; /* -8 */
17 case EFFS_DRIVER: return "ffs device driver error"; /* -9 */
18 case EFFS_NOSPACE: return "out of data space"; /* -10 */
19 case EFFS_FSFULL: return "file system full, no free inodes"; /* -11 */
20 case EFFS_BADNAME: return "bad filename"; /* -12 */
21 case EFFS_NOTFOUND: return "object not found"; /* -13 */
22 case EFFS_EXISTS: return "object exists"; /* -14 */
23 case EFFS_ACCESS: return "access permission violation"; /* -15 */
24 case EFFS_NAMETOOLONG: return "filename too long"; /* -16 */
25 case EFFS_INVALID: return "invalid argument"; /* -17 */
26 case EFFS_DIRNOTEMPTY: return "directory not empty"; /* -18 */
27 case EFFS_NOTADIR: return "object is not a directory"; /* -19 */
28 case EFFS_SPARE: return "SPARE"; /* -20 */
29 case EFFS_FILETOOBIG: return "file too big"; /* -21 */
30 case EFFS_NOTAFILE: return "object is not a file"; /* -22 */
31 case EFFS_PATHTOODEEP: return "path too deep"; /* -23 */
32 case EFFS_NUMFD: return "Max number of open files reached"; /* -24 */
33 case EFFS_BADFD: return "Bad file descriptor"; /* -25 */
34 case EFFS_BADOP: return "Bad operation"; /* -26 */
35 case EFFS_LOCKED: return "The file is locked"; /* -27 */
36 case EFFS_TOOBIG: return "too big (tmffs buffer overflow)"; /* -30 */
37 case EFFS_MEMORY: return "out of memory"; /* -31 */
38 case EFFS_MSGSEND: return "message send failed"; /* -32 */
39 case EFFS_SIBLINGLOOP: return "directory sibling loop"; /* -40 */
40 case EFFS_NOBLOCKS: return "No more blocks!?"; /* -41 */
41 case EFFS_DBR: return "Data reclaim did not finish!?"; /* -42 */
42 default: return "unknown ffs error code!";
43 }
44 }