Sign in
third-party-mirror
/
systemd
/
refs/heads/master
/
.
/
src
/
libsystemd
/
sd-journal
/
audit_type-to-name.awk
blob: a859c44d451c0ee3b4c8653c9d7b4a5941d0066c [
file
] [
log
] [
blame
]
# SPDX-License-Identifier: LGPL-2.1-or-later
BEGIN
{
print
"const char *audit_type_to_string(int type) {"
print
" switch (type) {"
}
{
printf
" case AUDIT_%s: return \"%s\";\n"
,
$1
,
$1
}
END
{
print
" default: return NULL;"
print
" }"
print
"}"
}