Skip to content

Commit

Permalink
audit: Make use of str_enabled_disabled() helper
Browse files Browse the repository at this point in the history
Use str_enabled_disabled() helper instead of open
coding the same.

Signed-off-by: Hongbo Li <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
  • Loading branch information
Hongbo Li authored and pcmoore committed Sep 3, 2024
1 parent 61c6097 commit 8c1867a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1706,7 +1706,7 @@ static int __init audit_init(void)
audit_cmd_mutex.owner = NULL;

pr_info("initializing netlink subsys (%s)\n",
audit_default ? "enabled" : "disabled");
str_enabled_disabled(audit_default));
register_pernet_subsys(&audit_net_ops);

audit_initialized = AUDIT_INITIALIZED;
Expand Down

0 comments on commit 8c1867a

Please sign in to comment.