2 * YAFFS: Yet another FFS. A NAND-flash specific file system.
4 * Copyright (C) 2002-2011 Aleph One Ltd.
5 * for Toby Churchill Ltd and Brightstar Engineering
7 * Created by Timothy Manning <timothy@yaffs.net>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
21 static const struct error_entry error_list
[] = {
22 { ENOMEM
, "ENOMEM" },
32 { ENODATA
, "ENODATA"},
33 { ENOTEMPTY
, "ENOTEMPTY"},
34 { ENAMETOOLONG
, "ENAMETOOLONG"},
37 { ENOTDIR
, "ENOTDIR"},
45 const char *yaffs_error_to_str(int err
)
47 const struct error_entry
*e
= error_list
;
52 while (e
->code
&& e
->text
) {
57 return "Unknown error code";