mirror of
https://github.com/akuker/RASCSI.git
synced 2025-04-25 11:39:46 +00:00
fix types
This commit is contained in:
parent
664bc20ec1
commit
5d45ad3ce9
@ -47,9 +47,9 @@ MmapFileHandle::MmapFileHandle(const string &path, int size, uint32_t blocks, of
|
||||
{
|
||||
LOGWARN("Unable to run fstat. Errno:%d", errno)
|
||||
}
|
||||
printf("Size: %Iu\n", sb.st_size);
|
||||
printf("Size: %lu\n", (uint64_t)sb.st_size);
|
||||
|
||||
LOGWARN("%s mmap-ed file of size: %Iu", __PRETTY_FUNCTION__, sb.st_size)
|
||||
LOGWARN("%s mmap-ed file of size: %lu", __PRETTY_FUNCTION__, (uint64_t)sb.st_size)
|
||||
|
||||
// int x = EACCES;
|
||||
|
||||
|
@ -38,7 +38,7 @@ PosixFileHandle::PosixFileHandle(const string &path, int size, uint32_t blocks,
|
||||
return;
|
||||
}
|
||||
|
||||
LOGWARN("%s opened file of size: %Iu", __PRETTY_FUNCTION__, sb.st_size);
|
||||
LOGWARN("%s opened file of size: %lu", __PRETTY_FUNCTION__, (uint64_t)sb.st_size);
|
||||
|
||||
initialized = true;
|
||||
}
|
||||
@ -73,7 +73,7 @@ bool PosixFileHandle::ReadSector(vector<uint8_t>& buf, int block)
|
||||
size_t result = read(fd, buf.data(), sector_size_bytes);
|
||||
if (result != sector_size_bytes)
|
||||
{
|
||||
LOGWARN("%s only read %Iu bytes but wanted %Iu ", __PRETTY_FUNCTION__, result, sector_size_bytes);
|
||||
LOGWARN("%s only read %lu bytes but wanted %lu ", __PRETTY_FUNCTION__, (uint64_t)result, (uint64_t)sector_size_bytes);
|
||||
}
|
||||
|
||||
return true;
|
||||
@ -101,7 +101,7 @@ bool PosixFileHandle::WriteSector(const vector<uint8_t>& buf, int block)
|
||||
size_t result = write(fd, buf.data(), sector_size_bytes);
|
||||
if (result != sector_size_bytes)
|
||||
{
|
||||
LOGWARN("%s only wrote %Iu bytes but wanted %Iu ", __PRETTY_FUNCTION__, result, sector_size_bytes)
|
||||
LOGWARN("%s only wrote %lu bytes but wanted %lu ", __PRETTY_FUNCTION__, (uint64_t)result, (uint64_t)sector_size_bytes)
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user