]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/log.c
Trans: Document which modules have to be resourcified
[libucw.git] / ucw / log.c
index 7a870261d8ac2379f61ecf69aa0cfd296d15eea7..31252c9ee2b0f1f083d6eb2bfb29d3b06c9a8e17 100644 (file)
--- a/ucw/log.c
+++ b/ucw/log.c
@@ -342,18 +342,22 @@ do_die(void)
 }
 
 void
 }
 
 void
-die(const char *fmt, ...)
+vdie(const char *fmt, va_list args)
 {
 {
-  va_list args;
-
-  va_start(args, fmt);
   vmsg(L_FATAL, fmt, args);
   vmsg(L_FATAL, fmt, args);
-  va_end(args);
   if (log_die_hook)
     log_die_hook();
   do_die();
 }
 
   if (log_die_hook)
     log_die_hook();
   do_die();
 }
 
+void
+die(const char *fmt, ...)
+{
+  va_list args;
+  va_start(args, fmt);
+  vdie(fmt, args);
+}
+
 void
 assert_failed(const char *assertion, const char *file, int line)
 {
 void
 assert_failed(const char *assertion, const char *file, int line)
 {