summaryrefslogtreecommitdiffstats
path: root/src/power/trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/power/trace.c')
-rw-r--r--src/power/trace.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/power/trace.c b/src/power/trace.c
deleted file mode 100644
index 1f23a6a..0000000
--- a/src/power/trace.c
+++ /dev/null
@@ -1,29 +0,0 @@
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <stdarg.h>
-
-static FILE *_trace_file = NULL;
-
-void _trace(int level, const char *file, int line, const char *format, ...)
-{
- // TODO; level
- if (_trace_file == NULL) {
- char *filename = getenv("SBLIM_TRACE_FILE");
- if (filename != NULL) {
- _trace_file = fopen(filename, "a");
- if (_trace_file == NULL) {
- _trace_file = stderr;
- }
- } else {
- _trace_file = stderr;
- }
- }
-
- va_list args;
- va_start(args, format);
- fprintf(_trace_file, "%s:%d\t", file, line);
- vfprintf(_trace_file, format, args);
- fprintf(_trace_file, "\n");
- va_end(args);
-}