From: Lennart Poettering Date: Thu, 6 Nov 2014 01:10:56 +0000 (+0100) Subject: journal: adjust audit log messages a bit X-Git-Tag: v218~534 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=124aff6251c095367ce1323a21fa23235cbb0490 journal: adjust audit log messages a bit --- 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;