* Preamble
*****************************************************************************/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <vlc/vlc.h>
#include <stdarg.h> /* va_list for BSD */
int i_size = strlen(psz_format) + INTF_MAX_MSG_SIZE;
#endif
- if( p_this == NULL || p_this->i_flags & OBJECT_FLAGS_QUIET ||
- (p_this->i_flags & OBJECT_FLAGS_NODBG && i_type == VLC_MSG_DBG) )
+ if( p_this == NULL )
{
+#ifndef NDEBUG
+ if( i_type == VLC_MSG_DBG )
+ return;
+#endif
+ utf8_vfprintf( stderr, psz_format, _args );
return;
}
+ if( p_this->i_flags & OBJECT_FLAGS_QUIET ||
+ (p_this->i_flags & OBJECT_FLAGS_NODBG && i_type == VLC_MSG_DBG) )
+ return;
+
#ifndef __GLIBC__
/* Expand %m to strerror(errno) - only once */
char buf[strlen( psz_format ) + 2001], *ptr;