aboutsummaryrefslogtreecommitdiff
path: root/src/main/extractor_logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/extractor_logging.c')
-rw-r--r--src/main/extractor_logging.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main/extractor_logging.c b/src/main/extractor_logging.c
index b1518ae..17192fe 100644
--- a/src/main/extractor_logging.c
+++ b/src/main/extractor_logging.c
@@ -39,13 +39,15 @@ EXTRACTOR_log_ (const char *file, int line, const char *format, ...)
39 va_list va; 39 va_list va;
40 40
41 fprintf (stderr, 41 fprintf (stderr,
42 "EXTRACTOR %s:%d ", 42 "EXTRACTOR %s:%d ",
43 file, line); 43 file, line);
44 va_start (va, format); 44 va_start (va, format);
45 vfprintf (stderr, format, va); 45 vfprintf (stderr, format, va);
46 va_end (va); 46 va_end (va);
47 fflush (stderr); 47 fflush (stderr);
48} 48}
49
50
49#endif 51#endif
50 52
51 53
@@ -57,7 +59,7 @@ EXTRACTOR_log_ (const char *file, int line, const char *format, ...)
57 */ 59 */
58void 60void
59EXTRACTOR_abort_ (const char *file, 61EXTRACTOR_abort_ (const char *file,
60 int line) 62 int line)
61{ 63{
62#if DEBUG 64#if DEBUG
63 EXTRACTOR_log_ (file, line, "Assertion failed.\n"); 65 EXTRACTOR_log_ (file, line, "Assertion failed.\n");
@@ -65,4 +67,5 @@ EXTRACTOR_abort_ (const char *file,
65 ABORT (); 67 ABORT ();
66} 68}
67 69
70
68/* end of extractor_logging.c */ 71/* end of extractor_logging.c */