aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/log.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/log.cc')
-rw-r--r--kernel/log.cc24
1 files changed, 1 insertions, 23 deletions
diff --git a/kernel/log.cc b/kernel/log.cc
index 8036b2360..5fe0d0863 100644
--- a/kernel/log.cc
+++ b/kernel/log.cc
@@ -17,10 +17,7 @@
*
*/
-#include "kernel/log.h"
-#include "kernel/rtlil.h"
-#include "kernel/register.h"
-#include "kernel/compatibility.h"
+#include "kernel/yosys.h"
#include "backends/ilang/ilang_backend.h"
#include <sys/time.h>
@@ -43,25 +40,6 @@ std::list<std::string> string_buf;
static struct timeval initial_tv = { 0, 0 };
static bool next_print_log = false;
-std::string stringf(const char *fmt, ...)
-{
- std::string string;
- char *str = NULL;
- va_list ap;
-
- va_start(ap, fmt);
- if (vasprintf(&str, fmt, ap) < 0)
- str = NULL;
- va_end(ap);
-
- if (str != NULL) {
- string = str;
- free(str);
- }
-
- return string;
-}
-
void logv(const char *format, va_list ap)
{
if (log_time) {