mirror of
https://github.com/systemd/systemd.git
synced 2025-03-09 12:58:26 +03:00
journal: adjust audit log messages a bit
This commit is contained in:
parent
a4705396ad
commit
124aff6251
@ -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);
|
sprintf(id_field, "_AUDIT_ID=%" PRIu64, id);
|
||||||
IOVEC_SET_STRING(iov[n_iov++], id_field);
|
IOVEC_SET_STRING(iov[n_iov++], id_field);
|
||||||
|
|
||||||
m = alloca(strlen("MESSAGE=audit-") + DECIMAL_STR_MAX(int) + strlen(": ") + strlen(p) + 1);
|
m = alloca(strlen("MESSAGE=<audit-") + DECIMAL_STR_MAX(int) + strlen("> ") + strlen(p) + 1);
|
||||||
sprintf(m, "MESSAGE=audit-%i: %s", type, p);
|
sprintf(m, "MESSAGE=<audit-%i> %s", type, p);
|
||||||
IOVEC_SET_STRING(iov[n_iov++], m);
|
IOVEC_SET_STRING(iov[n_iov++], m);
|
||||||
|
|
||||||
z = n_iov;
|
z = n_iov;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user