Since we add new errors after ECGSENTINEL, it makes no
sense to have the assert in place. Remove the assert.
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
"Cgroup, rules file does not exist",
"Cgroup mounting failed",
"The config file can not be opened",
+ "Sentinel"
"End of File or iterator",
};
char *cgroup_strerror(int code)
{
- assert((code >= ECGROUPNOTCOMPILED) && (code < ECGSENTINEL));
if (code == ECGOTHER) {
return strerror_r(cgroup_get_last_errno(), errtext, MAXLEN);
}