mirror of
https://github.com/holub/mame
synced 2025-04-25 17:56:43 +03:00
Fixed some log outputs, removed old tag() calls. (nw)
This commit is contained in:
parent
276bb67755
commit
35aaa35f9f
@ -462,7 +462,7 @@ image_init_result mfm_harddisk_device::call_load()
|
||||
}
|
||||
else
|
||||
if (TRACE_CONFIG) logerror("MFM HD rec specs: interleave=%d, cylskew=%d, headskew=%d, wpcom=%d, rwc=%d\n",
|
||||
tag(), param.interleave, param.cylskew, param.headskew, param.write_precomp_cylinder, param.reduced_wcurr_cylinder);
|
||||
param.interleave, param.cylskew, param.headskew, param.write_precomp_cylinder, param.reduced_wcurr_cylinder);
|
||||
|
||||
state = chdfile->read_metadata(MFM_HARD_DISK_METADATA_TAG, 1, metadata);
|
||||
if (state != CHDERR_NONE)
|
||||
@ -481,7 +481,7 @@ image_init_result mfm_harddisk_device::call_load()
|
||||
}
|
||||
else
|
||||
if (TRACE_CONFIG) logerror("MFM HD gap specs: gap1=%d, gap2=%d, gap3=%d, sync=%d, headerlen=%d, ecctype=%d\n",
|
||||
tag(), param.gap1, param.gap2, param.gap3, param.sync, param.headerlen, param.ecctype);
|
||||
param.gap1, param.gap2, param.gap3, param.sync, param.headerlen, param.ecctype);
|
||||
|
||||
m_format->set_layout_params(param);
|
||||
|
||||
@ -973,7 +973,7 @@ mfmhd_trackimage_cache::mfmhd_trackimage_cache(running_machine &machine):
|
||||
mfmhd_trackimage_cache::~mfmhd_trackimage_cache()
|
||||
{
|
||||
mfmhd_trackimage* current = m_tracks;
|
||||
if (TRACE_CACHE) m_machine.logerror("%s: MFM HD cache destroy\n", m_mfmhd->tag());
|
||||
if (TRACE_CACHE) m_machine.logerror("[%s:cache] MFM HD cache destroy\n", m_mfmhd->tag());
|
||||
|
||||
while (current != nullptr)
|
||||
{
|
||||
@ -1004,12 +1004,12 @@ void mfmhd_trackimage_cache::write_back_one()
|
||||
void mfmhd_trackimage_cache::cleanup()
|
||||
{
|
||||
mfmhd_trackimage* current = m_tracks;
|
||||
if (TRACE_CACHE) m_machine.logerror("%s: MFM HD cache cleanup\n", m_mfmhd->tag());
|
||||
if (TRACE_CACHE) m_machine.logerror("[%s:cache] MFM HD cache cleanup\n", m_mfmhd->tag());
|
||||
|
||||
// Still dirty?
|
||||
while (current != nullptr)
|
||||
{
|
||||
if (TRACE_CACHE) m_machine.logerror("%s: MFM HD cache: evict line cylinder=%d head=%d\n", m_mfmhd->tag(), current->cylinder, current->head);
|
||||
if (TRACE_CACHE) m_machine.logerror("[%s:cache] MFM HD cache: evict line cylinder=%d head=%d\n", m_mfmhd->tag(), current->cylinder, current->head);
|
||||
if (current->dirty)
|
||||
{
|
||||
m_mfmhd->write_track(current->encdata, current->cylinder, current->head);
|
||||
@ -1036,7 +1036,7 @@ const char *encnames[] = { "MFM_BITS","MFM_BYTE","SEPARATE","SSIMPLE " };
|
||||
*/
|
||||
void mfmhd_trackimage_cache::init(mfm_harddisk_device* mfmhd, int tracksize, int trackslots)
|
||||
{
|
||||
if (TRACE_CACHE) m_machine.logerror("%s: MFM HD cache init; cache size is %d tracks\n", mfmhd->tag(), trackslots);
|
||||
if (TRACE_CACHE) m_machine.logerror("[%s:cache] MFM HD cache init; cache size is %d tracks\n", mfmhd->tag(), trackslots);
|
||||
|
||||
chd_error state;
|
||||
|
||||
@ -1052,7 +1052,7 @@ void mfmhd_trackimage_cache::init(mfm_harddisk_device* mfmhd, int tracksize, int
|
||||
|
||||
while (track < trackslots)
|
||||
{
|
||||
if (TRACE_CACHE && TRACE_DETAIL) m_machine.logerror("%s: MFM HD allocate cache slot\n", mfmhd->tag());
|
||||
if (TRACE_CACHE && TRACE_DETAIL) m_machine.logerror("[%s:cache] MFM HD allocate cache slot\n", mfmhd->tag());
|
||||
previous = current;
|
||||
current = global_alloc(mfmhd_trackimage);
|
||||
current->encdata = global_alloc_array(UINT16, tracksize);
|
||||
@ -1131,7 +1131,7 @@ UINT16* mfmhd_trackimage_cache::get_trackimage(int cylinder, int head)
|
||||
|
||||
// previous points to the second to last element
|
||||
current = previous->next;
|
||||
if (TRACE_CACHE) m_machine.logerror("%s: MFM HD cache: evict line (c=%d,h=%d)\n", m_mfmhd->tag(), current->cylinder, current->head);
|
||||
if (TRACE_CACHE) m_machine.logerror("[%s:cache] evict line (c=%d,h=%d)\n", m_mfmhd->tag(), current->cylinder, current->head);
|
||||
|
||||
if (current->dirty)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user