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