From 124aff6251c095367ce1323a21fa23235cbb0490 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 6 Nov 2014 02:10:56 +0100 Subject: [PATCH] journal: adjust audit log messages a bit --- src/journal/journald-audit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/journal/journald-audit.c b/src/journal/journald-audit.c index f54373250..341d74815 100644 --- a/src/journal/journald-audit.c +++ b/src/journal/journald-audit.c @@ -396,8 +396,8 @@ static void process_audit_string(Server *s, int type, const char *data, size_t s sprintf(id_field, "_AUDIT_ID=%" PRIu64, id); IOVEC_SET_STRING(iov[n_iov++], id_field); - m = alloca(strlen("MESSAGE=audit-") + DECIMAL_STR_MAX(int) + strlen(": ") + strlen(p) + 1); - sprintf(m, "MESSAGE=audit-%i: %s", type, p); + m = alloca(strlen("MESSAGE= ") + strlen(p) + 1); + sprintf(m, "MESSAGE= %s", type, p); IOVEC_SET_STRING(iov[n_iov++], m); z = n_iov; -- 2.30.2