2 * Copyright 2008 FUJITSU Inc.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 * Zhang Xiliang <zhangxiliang@cn.fujitsu.com>
24 int key; /* error number */
26 * the field string position in the error message
27 * 0: don't output field string
28 * 1: output field string before error message
29 * 2: output field string after error message
36 static const struct msg_tab err_msgtab[] = {
37 { -1, 2, "-F missing operation for" },
38 { -2, 2, "-F unknown field:" },
39 { -3, 1, "must be before -S" },
40 { -4, 1, "machine type not found" },
41 { -5, 1, "elf mapping not found" },
42 { -6, 1, "requested bit level not supported by machine" },
43 { -7, 1, "can only be used with exit filter list" },
44 { -8, 2, "-F unknown message type -" },
45 { -9, 0, "msgtype field can only be used with exclude filter list" },
46 { -10, 0, "Failed upgrading rule" },
47 { -11, 0, "String value too long" },
48 { -12, 0, "Only msgtype field can be used with exclude filter" },
49 { -13, 1, "only takes = or != operators" },
50 { -14, 0, "Permission can only contain \'rwxa\'" },
51 { -15, 2, "-F unknown errno -"},
52 { -16, 2, "-F unknown file type - " },
53 { -17, 1, "can only be used with exit and entry filter list" },
54 { -18, 1, "" }, // Unused
55 { -19, 0, "Key field needs a watch or syscall given prior to it" },
56 { -20, 2, "-F missing value after operation for" },
57 { -21, 2, "-F value should be number for" },
58 { -22, 2, "-F missing field name before operator for" },
59 { -23, 2, "" }, // Unused
60 { -24, 2, "-C missing field name before operator for" },
61 { -25, 2, "-C missing value after operation for "},
62 { -26, 2, "-C unknown field:" },
63 { -27, 2, "-C unknown right hand value for comparison with:" },
64 { -28, 2, "Too many fields in rule" },