diff options
author | Dwight <dmerriman@gmail.com> | 2008-07-09 16:34:45 -0400 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2008-07-09 16:34:45 -0400 |
commit | 45d933fc4aaff74dd5091991e5dd54b8ecfc2889 (patch) | |
tree | 919128ab5f1c622fd7faa8b670397b18307c88f6 /util/mmap.cpp | |
parent | 017d3126bc6d701ef8662e806b8a0015e6f8b777 (diff) | |
download | mongo-45d933fc4aaff74dd5091991e5dd54b8ecfc2889.tar.gz |
compiles
Diffstat (limited to 'util/mmap.cpp')
-rw-r--r-- | util/mmap.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util/mmap.cpp b/util/mmap.cpp index e29dcc6b6f3..7a16b7f6a70 100644 --- a/util/mmap.cpp +++ b/util/mmap.cpp @@ -132,7 +132,9 @@ void* MemoryMappedFile::map(const char *filename, int length) { /* make sure the file is the full desired length */ off_t filelen = lseek(fd, 0, SEEK_END); if( filelen < length ) { - cout << "map: file length=" << filelen << " want:" << length << endl; + cout << "map: file length=" << (unsigned) filelen << " want:"; + cout << length; + cout << endl; if( filelen != 0 ) { cout << " failing mapping" << endl; return 0; |