sudoers_trace_print: use debug_decl_vars instead of doing it by hand.

This commit is contained in:
Todd C. Miller
2023-09-01 16:55:19 -06:00
parent 080e08b0fb
commit 0c9ca88f5b
2 changed files with 2 additions and 2 deletions

View File

@@ -6250,7 +6250,7 @@ sudoers_trace_print(const char *msg)
int
sudoers_trace_print(const char *msg)
{
const unsigned int sudo_debug_subsys = SUDOERS_DEBUG_PARSER;
debug_decl_vars(sudoers_trace_print, SUDOERS_DEBUG_PARSER);
if (sudo_debug_needed(SUDO_DEBUG_DEBUG)) {
sudo_lbuf_append(&trace_lbuf, "%s", msg);

View File

@@ -1471,7 +1471,7 @@ sudoers_trace_print(const char *msg)
int
sudoers_trace_print(const char *msg)
{
const unsigned int sudo_debug_subsys = SUDOERS_DEBUG_PARSER;
debug_decl_vars(sudoers_trace_print, SUDOERS_DEBUG_PARSER);
if (sudo_debug_needed(SUDO_DEBUG_DEBUG)) {
sudo_lbuf_append(&trace_lbuf, "%s", msg);