Commit 422b03cf authored by Paul Moore's avatar Paul Moore Committed by Al Viro

[PATCH] Audit: Fix the format type for size_t variables

Fix the following compiler warning by using "%zu" as defined in C99.

  CC      kernel/auditsc.o
  kernel/auditsc.c: In function 'audit_log_single_execve_arg':
  kernel/auditsc.c:1074: warning: format '%ld' expects type 'long int', but
  argument 4 has type 'size_t'
Signed-off-by: default avatarPaul Moore <paul.moore@hp.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent d395991c
...@@ -1070,7 +1070,7 @@ static int audit_log_single_execve_arg(struct audit_context *context, ...@@ -1070,7 +1070,7 @@ static int audit_log_single_execve_arg(struct audit_context *context,
* so we can be sure nothing was lost. * so we can be sure nothing was lost.
*/ */
if ((i == 0) && (too_long)) if ((i == 0) && (too_long))
audit_log_format(*ab, "a%d_len=%ld ", arg_num, audit_log_format(*ab, "a%d_len=%zu ", arg_num,
has_cntl ? 2*len : len); has_cntl ? 2*len : len);
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment