blob: 44fc702eb3d314626e5026a2f0bbd2f97b2ddacf (
plain)
1
2
3
4
5
6
7
8
9
|
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"
}
|