aboutsummaryrefslogtreecommitdiffstats
path: root/util/logger.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/logger.c')
-rw-r--r--util/logger.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/util/logger.c b/util/logger.c
index c32332b48..2355b6267 100644
--- a/util/logger.c
+++ b/util/logger.c
@@ -120,18 +120,20 @@ log_bug( const char *fmt, ... )
va_list arg_ptr ;
fprintf(stderr, "\nInternal Error%s: ", pidstring ) ;
- if( fmt ) {
- va_start( arg_ptr, fmt ) ;
- vfprintf(stderr,fmt,arg_ptr) ;
- va_end(arg_ptr);
- }
- else
- fputs("Ohhh jeeee ...\n", stderr);
+ va_start( arg_ptr, fmt ) ;
+ vfprintf(stderr,fmt,arg_ptr) ;
+ va_end(arg_ptr);
fflush(stderr);
abort();
}
void
+log_bug0()
+{
+ log_bug("Ohhhh jeeee ...\n");
+}
+
+void
log_debug( const char *fmt, ... )
{
va_list arg_ptr ;