Cast size_t to unsigned long for printing.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6721 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang 2011-01-02 02:50:51 +00:00
parent c729b86c00
commit 079bc67347
2 changed files with 3 additions and 2 deletions

View File

@ -312,7 +312,7 @@ bool CEXIETHERNET::cbwriteDescriptor(u32 size)
//DWORD swapped = swapw(descr.word); //DWORD swapped = swapw(descr.word);
//next_packet_ptr:12, packet_len:12, status:8; //next_packet_ptr:12, packet_len:12, status:8;
INFO_LOG(SP1, "Writing descriptor 0x%08X @ 0x%04lX: next 0x%03X len 0x%03X status 0x%02X\n", INFO_LOG(SP1, "Writing descriptor 0x%08X @ 0x%04lX: next 0x%03X len 0x%03X status 0x%02X\n",
descr.word, mCbw.p_write() + CB_OFFSET, descr.next_packet_ptr, descr.word, (unsigned long)mCbw.p_write() + CB_OFFSET, descr.next_packet_ptr,
descr.packet_len, descr.status); descr.packet_len, descr.status);
mCbw.write(&descr.word, SIZEOF_RECV_DESCRIPTOR); mCbw.write(&descr.word, SIZEOF_RECV_DESCRIPTOR);

View File

@ -213,7 +213,8 @@ void CEXIETHERNET::ImmWrite(u32 data, u32 size)
//_dbg_assert_(SP1, data == (u32)((u16)mCbw.p_write() + CB_OFFSET) >> 8); //_dbg_assert_(SP1, data == (u32)((u16)mCbw.p_write() + CB_OFFSET) >> 8);
if (data != (u32)((u16)mCbw.p_write() + CB_OFFSET) >> 8) if (data != (u32)((u16)mCbw.p_write() + CB_OFFSET) >> 8)
{ {
ERROR_LOG(SP1, "BBA RWP ASSERT data %x p_write %lx", data, mCbw.p_write()); ERROR_LOG(SP1, "BBA RWP ASSERT data %x p_write %lx",
data, (unsigned long)mCbw.p_write());
} }
break; break;
case BBA_RRP: // RRP - Receive Buffer Read Page Pointer case BBA_RRP: // RRP - Receive Buffer Read Page Pointer