/* audit_string_contains_control - does a string need to be logged in hex @string: string to be checked @len: max length of the string to check  */
int audit_string_contains_control(const char *string, size_t len)
/* audit_string_contains_control - does a string need to be logged in hex @string: string to be checked @len: max length of the string to check  */
int audit_string_contains_control(const char *string, size_t len)
{
	const unsigned char *p;
	for (p = string; p < (const unsigned char *)string + len; p++) {
		if (*p == '"' || *p < 0x21 || *p > 0x7e)
			return 1;
	}
	return 0;
}