Add support for multiple Debug lines per program. Callers may
register arbitrary debug facilities or use built-in defaults. We now use separate Debug statements for plugins and programs.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011 Todd C. Miller <Todd.Miller@courtesan.com>
|
||||
* Copyright (c) 2011, 2014 Todd C. Miller <Todd.Miller@courtesan.com>
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@@ -41,7 +41,7 @@ writeln_wrap(FILE *fp, char *line, size_t len, size_t maxlen)
|
||||
char *indent = "";
|
||||
char *beg = line;
|
||||
char *end;
|
||||
debug_decl(writeln_wrap, SUDO_DEBUG_LOGGING)
|
||||
debug_decl(writeln_wrap, SUDO_DEBUG_LOGGING, sudoers_debug_instance)
|
||||
|
||||
/*
|
||||
* Print out line with word wrap around maxlen characters.
|
||||
|
Reference in New Issue
Block a user