From: Eric Paris Date: Tue, 14 Jan 2014 02:16:59 +0000 (-0500) Subject: audit: reorder AUDIT_TTY_SET arguments X-Git-Tag: MMI-PSA29.97-13-9~12379^2~37 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1ce319f11ccc5ee5ed1bc1e020f1ac6e6d689c74;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git audit: reorder AUDIT_TTY_SET arguments An admin is likely to want to see old and new values next to each other. Putting all of the old values followed by all of the new values is just hard to read as a human. Signed-off-by: Eric Paris --- diff --git a/kernel/audit.c b/kernel/audit.c index b1d24a035ec9..9daf24361d53 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -1010,13 +1010,10 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh) spin_unlock(&tsk->sighand->siglock); audit_log_common_recv_msg(&ab, AUDIT_CONFIG_CHANGE); - audit_log_format(ab, " op=tty_set" - " old-enabled=%d old-log_passwd=%d" - " new-enabled=%d new-log_passwd=%d" - " res=%d", - old.enabled, old.log_passwd, - s.enabled, s.log_passwd, - !err); + audit_log_format(ab, " op=tty_set old-enabled=%d new-enabled=%d" + " old-log_passwd=%d new-log_passwd=%d res=%d", + old.enabled, s.enabled, old.log_passwd, + s.log_passwd, !err); audit_log_end(ab); break; }