diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-04-24 21:42:37 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-04-24 21:42:37 -0400 |
commit | 98f7edd4cd06e63934700c9a79d1726e9db68a34 (patch) | |
tree | e32e32bfdd3adbf57ea76bef9f324c6ab67c6d71 /util | |
parent | 5be10027f3663b580f57a13dd58d5d307199bd07 (diff) | |
download | mongo-98f7edd4cd06e63934700c9a79d1726e9db68a34.tar.gz |
compile
Diffstat (limited to 'util')
-rw-r--r-- | util/mmap_posix.cpp | 8 | ||||
-rw-r--r-- | util/processinfo_darwin.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/util/mmap_posix.cpp b/util/mmap_posix.cpp index f36b43d7f8a..4122ee7f7ba 100644 --- a/util/mmap_posix.cpp +++ b/util/mmap_posix.cpp @@ -59,7 +59,7 @@ namespace mongo { fd = open(filename, O_RDWR | O_NOATIME); if ( fd <= 0 ) { - out() << "couldn't open " << filename << ' ' << OUTPUT_ERRNO() << endl; + out() << "couldn't open " << filename << ' ' << errnoWithDescription() << endl; return 0; } @@ -73,7 +73,7 @@ namespace mongo { view = mmap(NULL, length, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); if ( view == MAP_FAILED ) { - out() << " mmap() failed for " << filename << " len:" << length << " " << OUTPUT_ERRNO() << endl; + out() << " mmap() failed for " << filename << " len:" << length << " " << errnoWithDescription() << endl; if ( errno == ENOMEM ){ out() << " mmap failed with out of memory, if you're using 32-bits, then you probably need to upgrade to 64" << endl; } @@ -85,7 +85,7 @@ namespace mongo { #else if ( options & SEQUENTIAL ){ if ( madvise( view , length , MADV_SEQUENTIAL ) ){ - out() << " madvise failed for " << filename << " " << OUTPUT_ERRNO() << endl; + out() << " madvise failed for " << filename << " " << errnoWithDescription() << endl; } } #endif @@ -96,7 +96,7 @@ namespace mongo { if ( view == 0 || fd == 0 ) return; if ( msync(view, len, sync ? MS_SYNC : MS_ASYNC) ) - problem() << "msync " << OUTPUT_ERRNO() << endl; + problem() << "msync " << errnoWithDescription() << endl; } diff --git a/util/processinfo_darwin.cpp b/util/processinfo_darwin.cpp index 0dfa7281a3d..2a92f312c6a 100644 --- a/util/processinfo_darwin.cpp +++ b/util/processinfo_darwin.cpp @@ -108,7 +108,7 @@ namespace mongo { start = start - ( (unsigned long long)start % pageSize ); char x = 0; if ( mincore( start , 128 , &x ) ){ - log() << "mincore failed: " << OUTPUT_ERRNO() << endl; + log() << "mincore failed: " << errnoWithDescription() << endl; return 1; } return x & 0x1; |