diff --git a/bochs/iodev/eth_null.cc b/bochs/iodev/eth_null.cc index b334b27dc..9dcaf039b 100644 --- a/bochs/iodev/eth_null.cc +++ b/bochs/iodev/eth_null.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: eth_null.cc,v 1.22 2008-12-11 18:01:56 vruppert Exp $ +// $Id: eth_null.cc,v 1.23 2008-12-21 08:56:26 vruppert Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. @@ -153,7 +153,7 @@ void bx_null_pktmover_c::rx_timer_handler (void *this_ptr) // dump packet in hex into an ascii log file fprintf(class_ptr->rxlog_txt, "NE2K transmitting a packet, length %u\n", io_len); Bit8u *charbuf = (Bit8u *)buf; - for (n=0; n0) fprintf(class_ptr->rxlog_txt, "\n"); fprintf(class_ptr->rxlog_txt, "%02x ", charbuf[n]); diff --git a/bochs/iodev/harddrv.cc b/bochs/iodev/harddrv.cc index 78f587bb9..effb03a37 100644 --- a/bochs/iodev/harddrv.cc +++ b/bochs/iodev/harddrv.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: harddrv.cc,v 1.216 2008-12-11 18:01:56 vruppert Exp $ +// $Id: harddrv.cc,v 1.217 2008-12-21 08:56:26 vruppert Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2002 MandrakeSoft S.A. @@ -173,7 +173,7 @@ void bx_hard_drive_c::init(void) char ata_name[20]; bx_list_c *base; - BX_DEBUG(("Init $Id: harddrv.cc,v 1.216 2008-12-11 18:01:56 vruppert Exp $")); + BX_DEBUG(("Init $Id: harddrv.cc,v 1.217 2008-12-21 08:56:26 vruppert Exp $")); for (channel=0; channel 0) { - bx_bool server = !strcmp(mode, "pipe-server"); #ifdef WIN32 + bx_bool server = !strcmp(mode, "pipe-server"); HANDLE pipe; BX_SER_THIS s[i].io_mode = BX_SER_MODE_PIPE; diff --git a/bochs/iodev/vmware3.cc b/bochs/iodev/vmware3.cc index 6c72e00c9..94b706560 100644 --- a/bochs/iodev/vmware3.cc +++ b/bochs/iodev/vmware3.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: vmware3.cc,v 1.19 2008-01-26 22:24:03 sshwarts Exp $ +// $Id: vmware3.cc,v 1.20 2008-12-21 08:56:26 vruppert Exp $ ///////////////////////////////////////////////////////////////////////// /* @@ -162,8 +162,8 @@ bool vmware3_image_t::is_valid_header(COW_Header & header) char * vmware3_image_t::generate_cow_name(const char * filename, unsigned chain) { char * name = new char[strlen(filename) + 4]; - if(name == 0) - BX_PANIC(("unable to allocate %lu bytes for vmware3 COW file name (base: %s, chain: %u)", strlen(filename) + 4, filename, chain)); + if(name == NULL) + BX_PANIC(("unable to allocate %u bytes for vmware3 COW file name (base: %s, chain: %u)", strlen(filename) + 4, filename, chain)); strcpy(name, filename); if(chain != 0) { @@ -358,7 +358,7 @@ ssize_t vmware3_image_t::read(void * buf, size_t count) off_t offset = perform_seek(); if(offset == INVALID_OFFSET) { - BX_DEBUG(("vmware3 COW read failed on %lu bytes", count)); + BX_DEBUG(("vmware3 COW read failed on %u bytes", count)); return -1; } unsigned bytes_remaining = (unsigned)(tlb_size - offset); @@ -467,7 +467,7 @@ ssize_t vmware3_image_t::write(const void * buf, size_t count) memcpy(current->tlb + offset, buf, bytes_remaining); if(!sync()) { - BX_DEBUG(("failed to sync when writing %lu bytes", count)); + BX_DEBUG(("failed to sync when writing %u bytes", count)); return -1; } amount = bytes_remaining;