1234567891011121314151617181920 |
- $OpenBSD: patch-mp_msg_c,v 1.1.1.1 2007/01/22 13:55:42 espie Exp $
- --- mp_msg.c.orig Thu Jan 18 12:31:44 2007
- +++ mp_msg.c Thu Jan 18 12:32:51 2007
- @@ -7,10 +7,15 @@
-
- #include "mp_msg.h"
-
- +extern int debug_messages;
- +
- void
- mp_msg (int module, int level, const char *format, ...)
- {
- va_list va;
- +
- + if (level == MSGL_DBG2 && !debug_messages)
- + return;
-
- va_start (va, format);
- vfprintf (stderr, format, va);
|