added missing \n to more fatalerror() calls (no whatsnew)

This commit is contained in:
Oliver Stöneberg 2012-09-09 06:54:12 +00:00
parent 69a8c465e2
commit cca3001670
21 changed files with 41 additions and 42 deletions

View File

@ -718,7 +718,7 @@ WRITE8_DEVICE_HANDLER( exidy_sh6840_w )
/* only support mode 0 and 2 */
if (((data >> 3) & 5) != 0)
fatalerror("exidy_sh6840_w - channel %d configured for mode %d", (sh6840_timer[1].cr & 0x01) ? 0 : 2, (data >> 3) & 7);
fatalerror("exidy_sh6840_w - channel %d configured for mode %d\n", (sh6840_timer[1].cr & 0x01) ? 0 : 2, (data >> 3) & 7);
break;
/* offset 1 writes to channel 1 control */
@ -727,7 +727,7 @@ WRITE8_DEVICE_HANDLER( exidy_sh6840_w )
/* only support mode 0 and 2 */
if (((data >> 3) & 5) != 0)
fatalerror("exidy_sh6840_w - channel 1 configured for mode %d", (data >> 3) & 7);
fatalerror("exidy_sh6840_w - channel 1 configured for mode %d\n", (data >> 3) & 7);
break;
/* offsets 2/4/6 write to the common MSB latch */

View File

@ -581,7 +581,7 @@ WRITE16_MEMBER(atarisy4_state::dsp0_bank_w)
m_csr[0] |= 0x10;
if (BIT(m_csr[0], 5) == 1)
fatalerror("68000 interrupt enable was set!");
fatalerror("68000 interrupt enable was set!\n");
}
data &= 0x3800;
@ -615,7 +615,7 @@ WRITE16_MEMBER(atarisy4_state::dsp1_bank_w)
m_csr[1] |= 0x10;
if (BIT(m_csr[1], 5) == 1)
fatalerror("68000 interrupt enable was set!");
fatalerror("68000 interrupt enable was set!\n");
}
data &= 0x3800;
@ -818,10 +818,10 @@ void load_ldafile(address_space *space, const UINT8 *file)
UINT16 addr;
if (READ_CHAR() != 0x01)
fatalerror("Bad .LDA file");
fatalerror("Bad .LDA file\n");
if (READ_CHAR() != 0x00)
fatalerror("Bad .LDA file");
fatalerror("Bad .LDA file\n");
len = READ_CHAR();
sum += len;
@ -854,7 +854,7 @@ void load_ldafile(address_space *space, const UINT8 *file)
sum += READ_CHAR();
if (sum != 0)
fatalerror(".LDA checksum failure");
fatalerror(".LDA checksum failure\n");
}
}
@ -881,7 +881,7 @@ void load_hexfile(address_space *space, const UINT8 *file)
/* First character of each line should be a '%' */
if (file[i++] != '%')
fatalerror("Error on line %d - invalid line start character", line);
fatalerror("Error on line %d - invalid line start character\n", line);
/* Get the line length */
len = READ_HEX_CHAR() << 4;

View File

@ -400,7 +400,7 @@ static void shuffle( UINT8 *buf, int len )
return;
if (len % 4)
fatalerror("shuffle() - not modulo 4"); /* must not happen */
fatalerror("shuffle() - not modulo 4\n"); /* must not happen */
len /= 2;

View File

@ -452,7 +452,7 @@ static MACHINE_START( s2650 )
else if (strcmp(game_name,"spclforc") == 0) state->m_protect_type = DK2650_SPCLFORC;
else if (strcmp(game_name,"spcfrcii") == 0) state->m_protect_type = DK2650_SPCLFORC;
else
fatalerror("Unknown game <%s> in S2650 start.", game_name);
fatalerror("Unknown game <%s> in S2650 start.\n", game_name);
}
static MACHINE_START( radarscp )

View File

@ -809,7 +809,7 @@ READ32_MEMBER(hng64_state::hng64_3d_1_r)
#ifdef UNUSED_FUNCTION
WRITE32_MEMBER(hng64_state::hng64_3d_1_w)
{
fatalerror("WRITE32_HANDLER( hng64_3d_1_w )");
fatalerror("WRITE32_HANDLER( hng64_3d_1_w )\n");
}
#endif

View File

@ -2188,7 +2188,7 @@ static void kaneko16_expand_sample_banks(running_machine &machine, const char *r
UINT8 *src0;
if (machine.root_device().memregion(region)->bytes() < 0x40000 * 16)
fatalerror("gtmr SOUND1 region too small");
fatalerror("gtmr SOUND1 region too small\n");
/* bank 0 maps to itself, so we just leave it alone */
src0 = machine.root_device().memregion(region)->base();

View File

@ -648,7 +648,7 @@ WRITE16_MEMBER(magicard_state::scc68070_mmu_w)
{
case 0x0000/2:
if(data & 0x80) //throw an error if the (unemulated) MMU is enabled
fatalerror("SCC68070: MMU enable bit active");
fatalerror("SCC68070: MMU enable bit active\n");
break;
}
}

View File

@ -691,7 +691,7 @@ READ32_MEMBER( magictg_state::adsp_idma_data_r )
}
else
{
fatalerror("????");
fatalerror("????\n");
return 0;
}
}
@ -705,7 +705,7 @@ WRITE32_MEMBER( magictg_state::adsp_idma_addr_w )
//mame_printf_debug("WR %.8x %.8x %.8x\n", offset, mem_mask, data >> 16);
}
else
fatalerror("????");
fatalerror("????\n");
}
READ32_MEMBER( magictg_state::adsp_status_r )
@ -791,7 +791,7 @@ WRITE16_MEMBER( magictg_state::adsp_control_w )
}
else
{
fatalerror("Unsupported BDMA width");
fatalerror("Unsupported BDMA width\n");
}
--m_adsp_regs.bdma_word_count;

View File

@ -764,11 +764,11 @@ static void ad1847_reg_write(running_machine &machine, int reg, UINT8 data)
if (data & 0x20)
{
fatalerror("AD1847: Companded data not supported");
fatalerror("AD1847: Companded data not supported\n");
}
if ((data & 0x40) == 0)
{
fatalerror("AD1847: 8-bit data not supported");
fatalerror("AD1847: 8-bit data not supported\n");
}
break;
}

View File

@ -119,7 +119,7 @@ static int copro_fifoin_pop(device_t *device, UINT32 *result)
if (state->m_dsp_type == DSP_TYPE_TGP)
return 0;
fatalerror("Copro FIFOIN underflow (at %08X)", cpu_get_pc(device));
fatalerror("Copro FIFOIN underflow (at %08X)\n", cpu_get_pc(device));
return 0;
}
@ -153,7 +153,7 @@ static void copro_fifoin_push(device_t *device, UINT32 data)
model2_state *state = device->machine().driver_data<model2_state>();
if (state->m_copro_fifoin_num == COPRO_FIFOIN_SIZE)
{
fatalerror("Copro FIFOIN overflow (at %08X)", cpu_get_pc(device));
fatalerror("Copro FIFOIN overflow (at %08X)\n", cpu_get_pc(device));
return;
}
@ -225,7 +225,7 @@ static void copro_fifoout_push(device_t *device, UINT32 data)
//if (state->m_copro_fifoout_wpos == state->m_copro_fifoout_rpos)
if (state->m_copro_fifoout_num == COPRO_FIFOOUT_SIZE)
{
fatalerror("Copro FIFOOUT overflow (at %08X)", cpu_get_pc(device));
fatalerror("Copro FIFOOUT overflow (at %08X)\n", cpu_get_pc(device));
return;
}

View File

@ -1055,7 +1055,7 @@ static void galileo_perform_dma(address_space *space, int which)
if (dstaddr >= 0x08000000 && dstaddr < 0x09000000)
{
if (bytesleft % 4 != 0)
fatalerror("Galileo DMA to voodoo: bytesleft = %d", bytesleft);
fatalerror("Galileo DMA to voodoo: bytesleft = %d\n", bytesleft);
srcinc *= 4;
dstinc *= 4;
@ -1362,7 +1362,7 @@ WRITE32_MEMBER(seattle_state::seattle_voodoo_w)
/* shouldn't get here if the CPU is already stalled */
if (m_cpu_stalled_on_voodoo)
fatalerror("seattle_voodoo_w while CPU is stalled");
fatalerror("seattle_voodoo_w while CPU is stalled\n");
/* remember all the info about this access for later */
m_cpu_stalled_on_voodoo = TRUE;

View File

@ -820,7 +820,7 @@ void segas24_state::irq_timer_sync()
break;
}
case 2: {
fatalerror("egas24_state::irq_timer_sync - case 2");
fatalerror("egas24_state::irq_timer_sync - case 2\n");
}
case 3: {
int ppos = floor((irq_synctime - irq_vsynctime).as_double() * TIMER_CLOCK);
@ -851,7 +851,7 @@ void segas24_state::irq_timer_start(int old_tmode)
break;
}
case 2:
fatalerror("egas24_state::irq_timer_start - case 2");
fatalerror("egas24_state::irq_timer_start - case 2\n");
break;
case 3: {
int count = 0x1000 - irq_tval;

View File

@ -773,7 +773,7 @@ static void z80_fifoout_push(address_space *space, UINT8 data)
}
if(state->m_fifoout_wpos == state->m_fifoout_rpos)
{
fatalerror("Sound FIFOOUT overflow at %08X", cpu_get_pc(&space->device()));
fatalerror("Sound FIFOOUT overflow at %08X\n", cpu_get_pc(&space->device()));
}
state->m_fifoout_read_request = 1;
@ -785,7 +785,7 @@ static UINT8 z80_fifoin_pop(address_space *space)
UINT8 r;
if (state->m_fifoin_wpos == state->m_fifoin_rpos)
{
fatalerror("Sound FIFOIN underflow at %08X", cpu_get_pc(&space->device()));
fatalerror("Sound FIFOIN underflow at %08X\n", cpu_get_pc(&space->device()));
}
r = state->m_fifoin_data[state->m_fifoin_rpos++];
if(state->m_fifoin_rpos == FIFO_SIZE)
@ -811,7 +811,7 @@ static void z80_fifoin_push(address_space *space, UINT8 data)
}
if(state->m_fifoin_wpos == state->m_fifoin_rpos)
{
fatalerror("Sound FIFOIN overflow at %08X", cpu_get_pc(&space->device()));
fatalerror("Sound FIFOIN overflow at %08X\n", cpu_get_pc(&space->device()));
}
state->m_fifoin_read_request = 1;
@ -1019,8 +1019,7 @@ READ32_MEMBER(seibuspi_state::soundrom_r)
}
}
fatalerror("soundrom_r: %08X, %08X", offset, mem_mask);
fatalerror("soundrom_r: %08X, %08X\n", offset, mem_mask);
}
/********************************************************************/

View File

@ -970,7 +970,7 @@ WRITE32_MEMBER(viper_state::epic_w)
{
epic.eicr = data;
if (data & 0x08000000)
fatalerror("EPIC: serial interrupts mode not implemented");
fatalerror("EPIC: serial interrupts mode not implemented\n");
break;
}
case 0x10e0: // Offset 0x410E0 - Spurious Vector Register
@ -1448,7 +1448,7 @@ static UINT32 voodoo3_pci_r(device_t *busdevice, device_t *device, int function,
}
default:
fatalerror("voodoo3_pci_r: %08X at %08X", reg, cpu_get_pc(device->machine().device("maincpu")));
fatalerror("voodoo3_pci_r: %08X at %08X\n", reg, cpu_get_pc(device->machine().device("maincpu")));
}
return 0;
}
@ -1518,7 +1518,7 @@ static void voodoo3_pci_w(device_t *busdevice, device_t *device, int function, i
}
default:
fatalerror("voodoo3_pci_w: %08X, %08X at %08X", data, reg, cpu_get_pc(device->machine().device("maincpu")));
fatalerror("voodoo3_pci_w: %08X, %08X at %08X\n", data, reg, cpu_get_pc(device->machine().device("maincpu")));
}
}

View File

@ -226,7 +226,7 @@ static MC6845_UPDATE_ROW( apricot_update_row )
else
{
/* graphics mode */
fatalerror("Graphics mode not implemented!");
fatalerror("Graphics mode not implemented!\n");
}
}

View File

@ -499,7 +499,7 @@ static SCREEN_UPDATE_RGB32( einstein2 )
else if (&screen == einstein->m_crtc_screen)
einstein->m_mc6845->screen_update( screen, bitmap, cliprect);
else
fatalerror("Unknown screen '%s'", screen.tag());
fatalerror("Unknown screen '%s'\n", screen.tag());
return 0;
}

View File

@ -2294,7 +2294,7 @@ READ32_MEMBER(gba_state::eeprom_r)
{
if (m_eeprom_addr >= sizeof( m_gba_eeprom))
{
fatalerror( "eeprom: invalid address (%x)", m_eeprom_addr);
fatalerror( "eeprom: invalid address (%x)\n", m_eeprom_addr);
}
m_eep_data = m_gba_eeprom[m_eeprom_addr];
//printf("EEPROM read @ %x = %x (%x)\n", m_eeprom_addr, m_eep_data, (m_eep_data & 0x80) ? 1 : 0);
@ -2398,7 +2398,7 @@ WRITE32_MEMBER(gba_state::eeprom_w)
mame_printf_verbose("%08x: EEPROM: %02x to %x\n", cpu_get_pc(machine().device("maincpu")), m_eep_data, m_eeprom_addr );
if (m_eeprom_addr >= sizeof( m_gba_eeprom))
{
fatalerror( "eeprom: invalid address (%x)", m_eeprom_addr);
fatalerror( "eeprom: invalid address (%x)\n", m_eeprom_addr);
}
m_gba_eeprom[m_eeprom_addr] = m_eep_data;
m_eeprom_addr++;

View File

@ -608,7 +608,7 @@ WRITE8_MEMBER( multi8_state::portc_w )
if (data & 0x20 && data != 0xff)
printf("Work RAM bank selected!\n");
// fatalerror("Work RAM bank selected");
// fatalerror("Work RAM bank selected\n");
}

View File

@ -1054,7 +1054,7 @@ WRITE16_MEMBER( supracan_state::supracan_dma_w )
else if(data != 0x0000) // fake DMA, used by C.U.G.
{
verboselog("maincpu", machine(), 0, "supracan_dma_w: Unknown DMA kickoff value of %04x (other regs %08x, %08x, %d)\n", data, acan_dma_regs->source[ch], acan_dma_regs->dest[ch], acan_dma_regs->count[ch] + 1);
fatalerror("supracan_dma_w: Unknown DMA kickoff value of %04x (other regs %08x, %08x, %d)",data, acan_dma_regs->source[ch], acan_dma_regs->dest[ch], acan_dma_regs->count[ch] + 1);
fatalerror("supracan_dma_w: Unknown DMA kickoff value of %04x (other regs %08x, %08x, %d)\n",data, acan_dma_regs->source[ch], acan_dma_regs->dest[ch], acan_dma_regs->count[ch] + 1);
}
break;
default:

View File

@ -80,7 +80,7 @@ static MC6845_UPDATE_ROW( victor9k_update_row )
if (BIT(ma, 13))
{
fatalerror("Graphics mode not supported!");
fatalerror("Graphics mode not supported!\n");
}
else
{

View File

@ -212,12 +212,12 @@ WRITE8_MEMBER( vidbrain_state::f3853_w )
logerror("%s: F3853 Interrupt Control %u\n", machine().describe_context(), m_int_enable);
interrupt_check();
if (m_int_enable == 0x03) fatalerror("F3853 Timer not supported!");
if (m_int_enable == 0x03) fatalerror("F3853 Timer not supported!\n");
break;
case 3:
// timer 8-bit polynomial counter
fatalerror("%s: F3853 Timer not supported!", machine().describe_context());
fatalerror("%s: F3853 Timer not supported!\n", machine().describe_context());
break;
}
}