added a few more missing \n in logging / cleanups (nw)

This commit is contained in:
Oliver Stöneberg 2014-03-10 16:17:31 +00:00
parent 59ad078f27
commit f3e7bd7fd2
7 changed files with 16 additions and 16 deletions

View File

@ -1005,9 +1005,9 @@ done:
if (!m_init_phase) if (!m_init_phase)
{ {
if (device().machine().phase() == MACHINE_PHASE_RUNNING) if (device().machine().phase() == MACHINE_PHASE_RUNNING)
popmessage("Error: Unable to %s image '%s': %s\n", is_create ? "create" : "load", path, error()); popmessage("Error: Unable to %s image '%s': %s", is_create ? "create" : "load", path, error());
else else
mame_printf_error("Error: Unable to %s image '%s': %s", is_create ? "create" : "load", path, error()); mame_printf_error("Error: Unable to %s image '%s': %s\n", is_create ? "create" : "load", path, error());
} }
clear(); clear();
} }

View File

@ -867,7 +867,7 @@ input_device::input_device(input_class &_class, int devindex, const char *name,
m_joymap.parse(joystick_map_8way); m_joymap.parse(joystick_map_8way);
} }
else if (mapstring != joystick_map_8way) else if (mapstring != joystick_map_8way)
mame_printf_verbose("Input: Default joystick map = %s", m_joymap.to_string(tempstr)); mame_printf_verbose("Input: Default joystick map = %s\n", m_joymap.to_string(tempstr));
} }
} }
@ -2127,7 +2127,7 @@ bool input_manager::set_global_joystick_map(const char *mapstring)
return false; return false;
astring tempstr; astring tempstr;
mame_printf_verbose("Input: Changing default joystick map = %s", map.to_string(tempstr)); mame_printf_verbose("Input: Changing default joystick map = %s\n", map.to_string(tempstr));
// iterate over joysticks and set the map // iterate over joysticks and set the map
for (int joynum = 0; joynum <= m_joystick_class.maxindex(); joynum++) for (int joynum = 0; joynum <= m_joystick_class.maxindex(); joynum++)

View File

@ -3529,7 +3529,7 @@ time_t ioport_manager::playback_init()
mame_printf_info("INP version %d.%d\n", header[0x10], header[0x11]); mame_printf_info("INP version %d.%d\n", header[0x10], header[0x11]);
time_t basetime = header[0x08] | (header[0x09] << 8) | (header[0x0a] << 16) | (header[0x0b] << 24) | time_t basetime = header[0x08] | (header[0x09] << 8) | (header[0x0a] << 16) | (header[0x0b] << 24) |
((UINT64)header[0x0c] << 32) | ((UINT64)header[0x0d] << 40) | ((UINT64)header[0x0e] << 48) | ((UINT64)header[0x0f] << 56); ((UINT64)header[0x0c] << 32) | ((UINT64)header[0x0d] << 40) | ((UINT64)header[0x0e] << 48) | ((UINT64)header[0x0f] << 56);
mame_printf_info("Created %s", ctime(&basetime)); mame_printf_info("Created %s\n", ctime(&basetime));
mame_printf_info("Recorded using %s\n", header + 0x20); mame_printf_info("Recorded using %s\n", header + 0x20);
// verify the header against the current game // verify the header against the current game

View File

@ -1639,7 +1639,7 @@ bool render_target::load_layout_file(const char *dirname, const char *filename)
if (filename[0] != '<') if (filename[0] != '<')
mame_printf_warning("Error in XML file '%s': %s\n", filename, err.string()); mame_printf_warning("Error in XML file '%s': %s\n", filename, err.string());
else else
mame_printf_warning("Error in XML string: %s", err.string()); mame_printf_warning("Error in XML string: %s\n", err.string());
result = false; result = false;
} }

View File

@ -1167,9 +1167,9 @@ void layout_element::component::load_bitmap()
// log an error // log an error
if (!m_alphafile[0]) if (!m_alphafile[0])
mame_printf_warning("Unable to load component bitmap '%s'", m_imagefile[0].cstr()); mame_printf_warning("Unable to load component bitmap '%s'\n", m_imagefile[0].cstr());
else else
mame_printf_warning("Unable to load component bitmap '%s'/'%s'", m_imagefile[0].cstr(), m_alphafile[0].cstr()); mame_printf_warning("Unable to load component bitmap '%s'/'%s'\n", m_imagefile[0].cstr(), m_alphafile[0].cstr());
} }
} }

View File

@ -69,7 +69,7 @@ netdev_pcap::netdev_pcap(const char *name, class device_network_interface *ifdev
} }
if(pcap_set_datalink(m_p, DLT_EN10MB) == -1) if(pcap_set_datalink(m_p, DLT_EN10MB) == -1)
{ {
mame_printf_verbose("Unable to set %s to ethernet", name); mame_printf_verbose("Unable to set %s to ethernet\n", name);
pcap_close(m_p); pcap_close(m_p);
m_p = NULL; m_p = NULL;
return; return;
@ -89,10 +89,10 @@ void netdev_pcap::set_mac(const char *mac)
if(!m_p) return; if(!m_p) return;
sprintf(filter, "not ether src %.2X:%.2X:%.2X:%.2X:%.2X:%.2X and (ether dst %.2X:%.2X:%.2X:%.2X:%.2X:%.2X or ether multicast or ether broadcast or ether dst 09:00:07:ff:ff:ff)", (unsigned char)mac[0], (unsigned char)mac[1], (unsigned char)mac[2],(unsigned char)mac[3], (unsigned char)mac[4], (unsigned char)mac[5], (unsigned char)mac[0], (unsigned char)mac[1], (unsigned char)mac[2],(unsigned char)mac[3], (unsigned char)mac[4], (unsigned char)mac[5]); sprintf(filter, "not ether src %.2X:%.2X:%.2X:%.2X:%.2X:%.2X and (ether dst %.2X:%.2X:%.2X:%.2X:%.2X:%.2X or ether multicast or ether broadcast or ether dst 09:00:07:ff:ff:ff)", (unsigned char)mac[0], (unsigned char)mac[1], (unsigned char)mac[2],(unsigned char)mac[3], (unsigned char)mac[4], (unsigned char)mac[5], (unsigned char)mac[0], (unsigned char)mac[1], (unsigned char)mac[2],(unsigned char)mac[3], (unsigned char)mac[4], (unsigned char)mac[5]);
if(pcap_compile(m_p, &fp, filter, 1, 0) == -1) { if(pcap_compile(m_p, &fp, filter, 1, 0) == -1) {
mame_printf_verbose("Error with pcap_compile"); mame_printf_verbose("Error with pcap_compile\n");
} }
if(pcap_setfilter(m_p, &fp) == -1) { if(pcap_setfilter(m_p, &fp) == -1) {
mame_printf_verbose("Error with pcap_setfilter"); mame_printf_verbose("Error with pcap_setfilter\n");
} }
} }

View File

@ -977,7 +977,7 @@ int renderer::device_create_resources()
D3DPOOL_DEFAULT, &m_vertexbuf); D3DPOOL_DEFAULT, &m_vertexbuf);
if (result != D3D_OK) if (result != D3D_OK)
{ {
printf("Error creating vertex buffer (%08X)", (UINT32)result); mame_printf_error("Error creating vertex buffer (%08X)\n", (UINT32)result);
return 1; return 1;
} }
@ -986,7 +986,7 @@ int renderer::device_create_resources()
d3dintf->post_fx_available) ? D3DFVF_XYZW : D3DFVF_XYZRHW))); d3dintf->post_fx_available) ? D3DFVF_XYZW : D3DFVF_XYZRHW)));
if (result != D3D_OK) if (result != D3D_OK)
{ {
mame_printf_error("Error setting vertex format (%08X)", (UINT32)result); mame_printf_error("Error setting vertex format (%08X)\n", (UINT32)result);
return 1; return 1;
} }
@ -1174,7 +1174,7 @@ int renderer::device_test_cooperative()
// if it didn't work, punt to GDI // if it didn't work, punt to GDI
if (result != D3D_OK) if (result != D3D_OK)
{ {
printf("Unable to reset, result %08x\n", (UINT32)result); mame_printf_error("Unable to reset, result %08x\n", (UINT32)result);
return 1; return 1;
} }
@ -1880,7 +1880,7 @@ void renderer::primitive_flush_pending()
if (vertnum + m_poly[polynum].get_vertcount() > m_numverts) if (vertnum + m_poly[polynum].get_vertcount() > m_numverts)
{ {
printf("Error: vertnum (%d) plus poly vertex count (%d) > %d\n", vertnum, m_poly[polynum].get_vertcount(), m_numverts); mame_printf_error("Error: vertnum (%d) plus poly vertex count (%d) > %d\n", vertnum, m_poly[polynum].get_vertcount(), m_numverts);
fflush(stdout); fflush(stdout);
} }
@ -2102,7 +2102,7 @@ texture_info::texture_info(texture_manager *manager, const render_texinfo* texso
error: error:
d3dintf->post_fx_available = false; d3dintf->post_fx_available = false;
printf("Direct3D: Critical warning: A texture failed to allocate. Expect things to get bad quickly.\n"); mame_printf_error("Direct3D: Critical warning: A texture failed to allocate. Expect things to get bad quickly.\n");
if (m_d3dsurface != NULL) if (m_d3dsurface != NULL)
(*d3dintf->surface.release)(m_d3dsurface); (*d3dintf->surface.release)(m_d3dsurface);
if (m_d3dtex != NULL) if (m_d3dtex != NULL)