Przeglądaj źródła

Kernel: Fix some broken debug log statements.

Andreas Kling 6 lat temu
rodzic
commit
e9d6fbfb47
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      Kernel/LocalSocket.cpp
  2. 1 1
      Kernel/Socket.cpp

+ 1 - 1
Kernel/LocalSocket.cpp

@@ -12,7 +12,7 @@ RetainPtr<LocalSocket> LocalSocket::create(int type)
 LocalSocket::LocalSocket(int type)
 LocalSocket::LocalSocket(int type)
     : Socket(AF_LOCAL, type, 0)
     : Socket(AF_LOCAL, type, 0)
 {
 {
-    kprintf("%s(%u) LocalSocket{%p} created with type=%u\n", current->name().characters(), current->pid(), type);
+    kprintf("%s(%u) LocalSocket{%p} created with type=%u\n", current->name().characters(), current->pid(), this, type);
 }
 }
 
 
 LocalSocket::~LocalSocket()
 LocalSocket::~LocalSocket()

+ 1 - 1
Kernel/Socket.cpp

@@ -37,7 +37,7 @@ bool Socket::listen(int backlog, int& error)
     }
     }
     m_backlog = backlog;
     m_backlog = backlog;
     m_listening = true;
     m_listening = true;
-    kprintf("Socket{%p} listening with backlog=%d\n", m_backlog);
+    kprintf("Socket{%p} listening with backlog=%d\n", this, m_backlog);
     return true;
     return true;
 }
 }