From 0c9ca88f5b81d40e9a153b3fd7635dcc7f6e55f6 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 1 Sep 2023 16:55:19 -0600 Subject: [PATCH] sudoers_trace_print: use debug_decl_vars instead of doing it by hand. --- plugins/sudoers/toke.c | 2 +- plugins/sudoers/toke.l | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sudoers/toke.c b/plugins/sudoers/toke.c index a300c2a84..5e3fcbc06 100644 --- a/plugins/sudoers/toke.c +++ b/plugins/sudoers/toke.c @@ -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); diff --git a/plugins/sudoers/toke.l b/plugins/sudoers/toke.l index caaebc470..3646064f6 100644 --- a/plugins/sudoers/toke.l +++ b/plugins/sudoers/toke.l @@ -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);