/* Returns true if the requested field equals to the str (including NULL).  */
bool dmi_match(enum dmi_field f, const char *str)
/* Returns true if the requested field equals to the str (including NULL).  */
bool dmi_match(enum dmi_field f, const char *str)
{
	const char *info = dmi_get_system_info(f);
	if (info == NULL || str == NULL)
		return info == str;
	return !strcmp(info, str);
}