mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +00:00
sudoers_trace_print: use debug_decl_vars instead of doing it by hand.
This commit is contained in:
parent
080e08b0fb
commit
0c9ca88f5b
@ -6250,7 +6250,7 @@ sudoers_trace_print(const char *msg)
|
|||||||
int
|
int
|
||||||
sudoers_trace_print(const char *msg)
|
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)) {
|
if (sudo_debug_needed(SUDO_DEBUG_DEBUG)) {
|
||||||
sudo_lbuf_append(&trace_lbuf, "%s", msg);
|
sudo_lbuf_append(&trace_lbuf, "%s", msg);
|
||||||
|
@ -1471,7 +1471,7 @@ sudoers_trace_print(const char *msg)
|
|||||||
int
|
int
|
||||||
sudoers_trace_print(const char *msg)
|
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)) {
|
if (sudo_debug_needed(SUDO_DEBUG_DEBUG)) {
|
||||||
sudo_lbuf_append(&trace_lbuf, "%s", msg);
|
sudo_lbuf_append(&trace_lbuf, "%s", msg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user