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 | |
parent | 017d3126bc6d701ef8662e806b8a0015e6f8b777 (diff) | |
download | mongo-45d933fc4aaff74dd5091991e5dd54b8ecfc2889.tar.gz |
compiles
-rw-r--r-- | db/javajs.cpp | 2 | ||||
-rw-r--r-- | util/mmap.cpp | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/db/javajs.cpp b/db/javajs.cpp index c4fe3ef73b2..d935d76f3ca 100644 --- a/db/javajs.cpp +++ b/db/javajs.cpp @@ -500,7 +500,7 @@ int javajstest() { time_t end = time(0); if( debug ) - cout << "time : " << ( end - start ) << endl; + cout << "time : " << (unsigned) ( end - start ) << endl; } if ( debug ) cout << "func4 start" << endl; 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; |