Conditionalize debugging messages in !STDC, !GNUC case.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@151 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
fb3aece812
commit
70792385d0
|
@ -31,7 +31,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $P4: //depot/projects/openpam/lib/openpam_log.c#13 $
|
||||
* $P4: //depot/projects/openpam/lib/openpam_log.c#14 $
|
||||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
|
@ -106,6 +106,9 @@ openpam_log(int level, const char *fmt, ...)
|
|||
|
||||
switch (level) {
|
||||
case PAM_LOG_DEBUG:
|
||||
#ifndef DEBUG
|
||||
return;
|
||||
#endif
|
||||
priority = LOG_DEBUG;
|
||||
break;
|
||||
case PAM_LOG_VERBOSE:
|
||||
|
|
Loading…
Reference in New Issue