mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-03-19 03:42:36 +00:00
Merge pull request #14394 from sepalani/tri-log
AMMediaboard: Add more log messages
This commit is contained in:
commit
b5a1a06f6c
@ -831,7 +831,8 @@ static GuestSocket NetDIMMAccept(GuestSocket guest_socket, u8* guest_addr_ptr,
|
||||
|
||||
if (client_sock == INVALID_GUEST_SOCKET)
|
||||
{
|
||||
ERROR_LOG_FMT(AMMEDIABOARD, "AMMBCommandAccept: accept: ({})", Common::StrNetworkError());
|
||||
ERROR_LOG_FMT(AMMEDIABOARD, "AMMBCommandAccept: accept( {}({}) ) failed: {}", host_socket,
|
||||
int(guest_socket), Common::StrNetworkError());
|
||||
s_last_error = SOCKET_ERROR;
|
||||
return INVALID_GUEST_SOCKET;
|
||||
}
|
||||
@ -1210,9 +1211,13 @@ static void AMMBCommandSelect(u32 parameter_offset, u32 network_buffer_base)
|
||||
WriteGuestFdSetFromPollFds(guest_readfds_ptr, pollfds, POLLIN);
|
||||
WriteGuestFdSetFromPollFds(guest_writefds_ptr, pollfds, POLLOUT);
|
||||
WriteGuestFdSetFromPollFds(guest_exceptfds_ptr, pollfds, POLLPRI);
|
||||
DEBUG_LOG_FMT(AMMEDIABOARD_NET, "GC-AM: select result: {}", ret);
|
||||
}
|
||||
else
|
||||
{
|
||||
ERROR_LOG_FMT(AMMEDIABOARD_NET, "GC-AM: select failed: {} ({})", ret,
|
||||
Common::StrNetworkError());
|
||||
}
|
||||
|
||||
DEBUG_LOG_FMT(AMMEDIABOARD_NET, "GC-AM: select result: {}", ret);
|
||||
|
||||
s_media_buffer[1] = 0;
|
||||
s_media_buffer_32[1] = ret;
|
||||
@ -1616,8 +1621,17 @@ u32 ExecuteCommand(std::array<u32, 3>& dicmd_buf, u32* diimm_buf, u32 address, u
|
||||
const auto guest_socket = GuestSocket(s_media_buffer_32[2]);
|
||||
const auto host_socket = GetHostSocket(guest_socket);
|
||||
|
||||
DEBUG_LOG_FMT(AMMEDIABOARD_NET, "GC-AM: GetLastError( {}({}) ):{}", host_socket,
|
||||
int(guest_socket), int(s_last_error));
|
||||
if (s_last_error == SSC_EWOULDBLOCK)
|
||||
{
|
||||
// Prevent spamming
|
||||
DEBUG_LOG_FMT(AMMEDIABOARD_NET, "GC-AM: GetLastError( {}({}) ):EWOULDBLOCK", host_socket,
|
||||
int(guest_socket));
|
||||
}
|
||||
else
|
||||
{
|
||||
NOTICE_LOG_FMT(AMMEDIABOARD_NET, "GC-AM: GetLastError( {}({}) ):{}", host_socket,
|
||||
int(guest_socket), int(s_last_error));
|
||||
}
|
||||
|
||||
// Good enough, assuming it's called for the same socket right after an error.
|
||||
// TODO: Implement something similar per socket.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user