diff --git a/pcsx2/DEV9/Sessions/TCP_Session/TCP_Session_In.cpp b/pcsx2/DEV9/Sessions/TCP_Session/TCP_Session_In.cpp index 8aa13c9fd6..dba56d98c7 100644 --- a/pcsx2/DEV9/Sessions/TCP_Session/TCP_Session_In.cpp +++ b/pcsx2/DEV9/Sessions/TCP_Session/TCP_Session_In.cpp @@ -168,7 +168,7 @@ namespace Sessions } return nullptr; } - DevCon.WriteLn("DEV9: TCP: [SRV]Sending %d bytes", recived); + DevCon.WriteLn("DEV9: TCP: [SRV] Sending %d bytes", recived); PayloadData* recivedData = new PayloadData(recived); memcpy(recivedData->data.get(), buffer.get(), recived); diff --git a/pcsx2/DEV9/Sessions/UDP_Session/UDP_FixedPort.cpp b/pcsx2/DEV9/Sessions/UDP_Session/UDP_FixedPort.cpp index a59b1a0f0a..6a89633df5 100644 --- a/pcsx2/DEV9/Sessions/UDP_Session/UDP_FixedPort.cpp +++ b/pcsx2/DEV9/Sessions/UDP_Session/UDP_FixedPort.cpp @@ -116,7 +116,7 @@ namespace Sessions if (ret == SOCKET_ERROR) { hasData = false; - Console.WriteLn("DEV9: UDP: select failed. Error Code: %d", + Console.Error("DEV9: UDP: select failed. Error Code: %d", #ifdef _WIN32 WSAGetLastError()); #elif defined(__POSIX__) diff --git a/pcsx2/DEV9/sockets.cpp b/pcsx2/DEV9/sockets.cpp index 711c5a8549..d7b1314a3c 100644 --- a/pcsx2/DEV9/sockets.cpp +++ b/pcsx2/DEV9/sockets.cpp @@ -582,7 +582,7 @@ bool SocketAdapter::SendUDP(ConnectionKey Key, IP_Packet* ipPkt) fKey.ps2Port = udp.sourcePort; fKey.srvPort = 0; - Console.WriteLn("DEV9: Socket: Creating New UDPFixedPort with port %d", udp.destinationPort); + Console.WriteLn("DEV9: Socket: Creating New UDPFixedPort with port %d", udp.sourcePort); fPort = new UDP_FixedPort(fKey, adapterIP, udp.sourcePort); fPort->AddConnectionClosedHandler([&](BaseSession* session) { HandleFixedPortClosed(session); }); @@ -594,7 +594,7 @@ bool SocketAdapter::SendUDP(ConnectionKey Key, IP_Packet* ipPkt) fixedUDPPorts.Add(udp.sourcePort, fPort); } - Console.WriteLn("DEV9: Socket: Creating New UDP Connection from FixedPort %d", udp.destinationPort); + Console.WriteLn("DEV9: Socket: Creating New UDP Connection from FixedPort %d to %d", udp.sourcePort, udp.destinationPort); s = fPort->NewClientSession(Key, ipPkt->destinationIP == dhcpServer.broadcastIP || ipPkt->destinationIP == IP_Address{{{255, 255, 255, 255}}}, (ipPkt->destinationIP.bytes[0] & 0xF0) == 0xE0);