FMD_ERR_CLASS
#define FMD_ERR_CLASS_LEN (sizeof (FMD_ERR_CLASS) - 1)
if (strncmp(class, FMD_ERR_CLASS, FMD_ERR_CLASS_LEN) == 0)