0fe072a6fb06febcf7405b41d78d945840ce2b73
[openwrt/svn-archive/archive.git] / tools / mtd-utils / patches / 133-error-fix.patch
1 --- a/mkfs.jffs2.c
2 +++ b/mkfs.jffs2.c
3 @@ -468,7 +468,7 @@ static int interpret_table_entry(struct
4 if (entry) {
5 /* Check the type */
6 if ((mode & S_IFMT) != (entry->sb.st_mode & S_IFMT)) {
7 - error_msg ("skipping device_table entry '%s': type mismatch!", name);
8 + sys_errmsg ("skipping device_table entry '%s': type mismatch!", name);
9 free(name);
10 free(hostpath);
11 return 1;
12 @@ -484,7 +484,7 @@ static int interpret_table_entry(struct
13 }
14 } else {
15 if (type == 'f' || type == 'l') {
16 - error_msg ("skipping device_table entry '%s': file does not exist!", name);
17 + sys_errmsg ("skipping device_table entry '%s': file does not exist!", name);
18 free(name);
19 free(hostpath);
20 return 1;