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);