aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/log.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/log.cc')
-rw-r--r--kernel/log.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/log.cc b/kernel/log.cc
index 2be425ffd..70bff8f5b 100644
--- a/kernel/log.cc
+++ b/kernel/log.cc
@@ -253,9 +253,9 @@ void log_pop()
log_flush();
}
+#ifdef __linux__
void log_backtrace(const char *prefix, int levels)
{
-#ifdef __linux__
if (levels <= 0) return;
Dl_info dli;
@@ -341,8 +341,10 @@ void log_backtrace(const char *prefix, int levels)
}
if (levels <= 9) return;
-#endif
}
+#else
+void log_backtrace(const char*, int) { }
+#endif
void log_reset_stack()
{