]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/journal/test-audit-type.c
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
4 #include <linux/audit.h>
6 #include "audit-type.h"
8 static void print_audit_label(int i
) {
11 name
= audit_type_name_alloca(i
);
12 /* This is a separate function only because of alloca */
13 printf("%i → %s → %s\n", i
, audit_type_to_string(i
), name
);
16 static void test_audit_type(void) {
19 for (i
= 0; i
<= AUDIT_KERNEL
; i
++)
23 int main(int argc
, char **argv
) {