mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
audit: minimize our use of audit_log_format()
There are some cases where we are making multiple audit_log_format() calls in a row, for no apparent reason. Squash these down to a single audit_log_format() call whenever possible. Acked-by: Richard Guy Briggs <[email protected]> Signed-off-by: Paul Moore <[email protected]>
This commit is contained in:
parent
c8fc5d49c3
commit
d0a3f18a70
5 changed files with 11 additions and 16 deletions
|
|
@ -2503,10 +2503,9 @@ void audit_seccomp_actions_logged(const char *names, const char *old_names,
|
|||
if (unlikely(!ab))
|
||||
return;
|
||||
|
||||
audit_log_format(ab, "op=seccomp-logging");
|
||||
audit_log_format(ab, " actions=%s", names);
|
||||
audit_log_format(ab, " old-actions=%s", old_names);
|
||||
audit_log_format(ab, " res=%d", res);
|
||||
audit_log_format(ab,
|
||||
"op=seccomp-logging actions=%s old-actions=%s res=%d",
|
||||
names, old_names, res);
|
||||
audit_log_end(ab);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue