patch-mp_msg_c 424 B

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