mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-14 23:10:33 +02:00
Logging API change (refactor) (#19324)
* Rename LogType to Log * Explicitly use the Log:: enum when logging. Allows for autocomplete when editing. * Mac/ARM64 buildfix * Do the same with the hle result log macros * Rename the log names to mixed case while at it. * iOS buildfix * Qt buildfix attempt, ARM32 buildfix
This commit is contained in:
1 parent
ae3ff686f0
commit
e01ca5b057
393 files changed
+6198
-6193
No files matched your search
@@ -44,14 +44,14 @@ bool Buffer::FlushSocket(uintptr_t sock, double timeout, bool *cancelled) {
|
||||
return false;
|
||||
ready = fd_util::WaitUntilReady(sock, CANCEL_INTERVAL, true);
|
||||
if (!ready && time_now_d() > endTimeout) {
|
||||
ERROR_LOG(IO, "FlushSocket timed out");
|
||||
ERROR_LOG(Log::IO, "FlushSocket timed out");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
int sent = send(sock, &data_[pos], end - pos, MSG_NOSIGNAL);
|
||||
// TODO: Do we need some retry logic here, instead of just giving up?
|
||||
if (sent < 0) {
|
||||
ERROR_LOG(IO, "FlushSocket failed to send: %d", errno);
|
||||
ERROR_LOG(Log::IO, "FlushSocket failed to send: %d", errno);
|
||||
return false;
|
||||
}
|
||||
pos += sent;
|
||||
@@ -94,7 +94,7 @@ bool Buffer::ReadAllWithProgress(int fd, int knownSize, RequestProgress *progres
|
||||
#else
|
||||
if (errno != EWOULDBLOCK) {
|
||||
#endif
|
||||
ERROR_LOG(IO, "Error reading from buffer: %i", retval);
|
||||
ERROR_LOG(Log::IO, "Error reading from buffer: %i", retval);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user