summaryrefslogtreecommitdiff
path: root/AK/LogStream.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-20 22:56:42 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-20 22:59:11 +0100
commit44bc4008b76e4480490a976d12665c3697f2c85b (patch)
tree58e8fbd4b42f810ae4ba8687b467ef16484ce292 /AK/LogStream.cpp
parent6c2c3d00a39a6e2798497426168eabd2c1e7a702 (diff)
downloadserenity-44bc4008b76e4480490a976d12665c3697f2c85b.zip
Build: Get rid of the USERLAND define
Let's simplify things. There is now only KERNEL. To see if you're on Serenity, check if __serenity__ is defined.
Diffstat (limited to 'AK/LogStream.cpp')
-rw-r--r--AK/LogStream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/LogStream.cpp b/AK/LogStream.cpp
index 912c90b412..16f32d4894 100644
--- a/AK/LogStream.cpp
+++ b/AK/LogStream.cpp
@@ -36,7 +36,7 @@ const LogStream& operator<<(const LogStream& stream, const void* value)
return stream << String::format("%p", value);
}
-#ifdef USERLAND
+#if defined (__serenity__) && !defined(KERNEL)
static TriState got_process_name = TriState::Unknown;
static char process_name_buffer[256];
#endif
@@ -44,7 +44,7 @@ static char process_name_buffer[256];
DebugLogStream dbg()
{
DebugLogStream stream;
-#ifdef USERLAND
+#if defined (__serenity__) && !defined(KERNEL)
if (got_process_name == TriState::Unknown) {
if (get_process_name(process_name_buffer, sizeof(process_name_buffer)) == 0)
got_process_name = TriState::True;