mirror of
https://github.com/RPCSX/rpcsx.git
synced 2024-12-04 01:00:43 +00:00
Logs: compact small hex numbers
This commit is contained in:
parent
81c7920a73
commit
d89f315bd8
@ -7,9 +7,14 @@
|
||||
#include <unistd.h>
|
||||
#include <vector>
|
||||
|
||||
static void append_hex(std::string &out, std::uintmax_t value) {
|
||||
static void append_hex(std::string &out, std::unsigned_integral auto value) {
|
||||
std::ostringstream buf;
|
||||
buf << "0x" << std::hex << value;
|
||||
if (value < 10)
|
||||
buf << value;
|
||||
else if (value >= decltype(value)(UINTMAX_MAX) - 1)
|
||||
buf << "-" << -value;
|
||||
else
|
||||
buf << "0x" << std::hex << value;
|
||||
out += buf.str();
|
||||
}
|
||||
|
||||
|
@ -114,7 +114,6 @@ orbis::SysResult virtual_query(orbis::Thread *thread,
|
||||
|
||||
orbis::SysResult open(orbis::Thread *thread, orbis::ptr<const char> path,
|
||||
orbis::sint flags, orbis::sint mode) {
|
||||
ORBIS_LOG_NOTICE("sys_open", path, flags, mode);
|
||||
orbis::Ref<IoDeviceInstance> instance;
|
||||
auto result = rx::vfs::open(path, flags, mode, &instance);
|
||||
if (result.isError()) {
|
||||
|
Loading…
Reference in New Issue
Block a user