提交 f706d5d2 编写于 作者: D Dave Jones 提交者: Linus Torvalds

audit: silence two kerneldoc warnings in kernel/audit.c

Silence two kerneldoc warnings.

Warning(kernel/audit.c:1276): No description found for parameter 'string'
Warning(kernel/audit.c:1276): No description found for parameter 'len'

[also fix a typo for bonus points]
Signed-off-by: NDave Jones <davej@codemonkey.org.uk>
Acked-by: NRandy Dunlap <randy.dunlap@oracle.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 5214b729
...@@ -1269,8 +1269,8 @@ static void audit_log_n_string(struct audit_buffer *ab, size_t slen, ...@@ -1269,8 +1269,8 @@ static void audit_log_n_string(struct audit_buffer *ab, size_t slen,
/** /**
* audit_string_contains_control - does a string need to be logged in hex * audit_string_contains_control - does a string need to be logged in hex
* @string - string to be checked * @string: string to be checked
* @len - max length of the string to check * @len: max length of the string to check
*/ */
int audit_string_contains_control(const char *string, size_t len) int audit_string_contains_control(const char *string, size_t len)
{ {
...@@ -1285,7 +1285,7 @@ int audit_string_contains_control(const char *string, size_t len) ...@@ -1285,7 +1285,7 @@ int audit_string_contains_control(const char *string, size_t len)
/** /**
* audit_log_n_untrustedstring - log a string that may contain random characters * audit_log_n_untrustedstring - log a string that may contain random characters
* @ab: audit_buffer * @ab: audit_buffer
* @len: lenth of string (not including trailing null) * @len: length of string (not including trailing null)
* @string: string to be logged * @string: string to be logged
* *
* This code will escape a string that is passed to it if the string * This code will escape a string that is passed to it if the string
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册