diff --git a/src/emu/machine.cpp b/src/emu/machine.cpp index 1e411b4a421..d856c6b7262 100644 --- a/src/emu/machine.cpp +++ b/src/emu/machine.cpp @@ -181,7 +181,7 @@ const char *running_machine::describe_context() if (cpu != nullptr) { address_space &prg = cpu->space(AS_PROGRAM); - m_context = string_format("'%s' (%s)", cpu->tag(), core_i64_format(cpu->pc(), prg.logaddrchars(), prg.is_octal())); + m_context = string_format(prg.is_octal() ? "'%s' (%*o)" : "'%s' (%*X)", cpu->tag(), prg.logaddrchars(), cpu->pc()); } } else diff --git a/src/emu/memory.cpp b/src/emu/memory.cpp index 520a0cd25fe..b4f6cacfff2 100644 --- a/src/emu/memory.cpp +++ b/src/emu/memory.cpp @@ -673,10 +673,13 @@ private: { if (m_space.log_unmap() && !m_space.debugger_access()) { - m_space.device().logerror("%s: unmapped %s memory read from %s & %s\n", - m_space.machine().describe_context(), m_space.name(), - core_i64_format(m_space.byte_to_address(offset * sizeof(_UintType)), m_space.addrchars(),m_space.is_octal()), - core_i64_format(mask, 2 * sizeof(_UintType),m_space.is_octal())); + m_space.device().logerror( + m_space.is_octal() + ? "%s: unmapped %s memory read from %*o & %*o\n" + : "%s: unmapped %s memory read from %*X & %*X\n", + m_space.machine().describe_context(), m_space.name(), + m_space.addrchars(), m_space.byte_to_address(offset * sizeof(_UintType)), + 2 * sizeof(_UintType), mask); } return m_space.unmap(); } @@ -741,11 +744,14 @@ private: { if (m_space.log_unmap() && !m_space.debugger_access()) { - m_space.device().logerror("%s: unmapped %s memory write to %s = %s & %s\n", + m_space.device().logerror( + m_space.is_octal() + ? "%s: unmapped %s memory write to %*o = %*o & %*o\n" + : "%s: unmapped %s memory write to %*X = %*X & %*X\n", m_space.machine().describe_context(), m_space.name(), - core_i64_format(m_space.byte_to_address(offset * sizeof(_UintType)), m_space.addrchars(),m_space.is_octal()), - core_i64_format(data, 2 * sizeof(_UintType),m_space.is_octal()), - core_i64_format(mask, 2 * sizeof(_UintType),m_space.is_octal())); + m_space.addrchars(), m_space.byte_to_address(offset * sizeof(_UintType)), + 2 * sizeof(_UintType), data, + 2 * sizeof(_UintType), mask); } }