mirror of
https://github.com/aria2/aria2.git
synced 2025-04-06 05:57:36 +03:00
Use PRId64 for int64_t format specifier
This commit is contained in:
parent
3620d271af
commit
4b03634f36
44 changed files with 206 additions and 213 deletions
|
@ -215,9 +215,9 @@ void AbstractDiskWriter::ensureMmapWrite(size_t len, off_t offset)
|
|||
mapaddr_ = reinterpret_cast<unsigned char*>
|
||||
(mmap(0, size(), PROT_READ | PROT_WRITE, MAP_SHARED, fd_, 0));
|
||||
if(mapaddr_) {
|
||||
A2_LOG_DEBUG(fmt("mmap for file %s succeeded, length=%lld",
|
||||
A2_LOG_DEBUG(fmt("mmap for file %s succeeded, length=%" PRId64 "",
|
||||
filename_.c_str(),
|
||||
static_cast<long long int>(filesize)));
|
||||
static_cast<uint64_t>(filesize)));
|
||||
maplen_ = filesize;
|
||||
} else {
|
||||
int errNum = errno;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue