2 * YAFFS: Yet another FFS. A NAND-flash specific file system.
4 * Copyright (C) 2002-2018 Aleph One Ltd.
6 * Created by Timothy Manning <timothy@yaffs.net>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
20 static const struct error_entry error_list[] = {
21 { ENOMEM , "ENOMEM" },
31 { ENODATA, "ENODATA"},
32 { ENOTEMPTY, "ENOTEMPTY"},
33 { ENAMETOOLONG, "ENAMETOOLONG"},
36 { ENOTDIR , "ENOTDIR"},
44 const char *yaffs_error_to_str(int err)
46 const struct error_entry *e = error_list;
51 while (e->code && e->text) {
56 return "Unknown error code";