Explorar o código

LibC: Simplify assertion failure dbgln() a bit

There's no need to say USERSPACE(PID) since dbgln() will prefix lines
with that information anyway.
Andreas Kling %!s(int64=4) %!d(string=hai) anos
pai
achega
f0409081f5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Userland/Libraries/LibC/assert.cpp

+ 1 - 1
Userland/Libraries/LibC/assert.cpp

@@ -19,7 +19,7 @@ extern bool __stdio_is_initialized;
 #ifndef NDEBUG
 void __assertion_failed(const char* msg)
 {
-    dbgln("USERSPACE({}) ASSERTION FAILED: {}", getpid(), msg);
+    dbgln("ASSERTION FAILED: {}", msg);
     if (__stdio_is_initialized)
         warnln("ASSERTION FAILED: {}", msg);