summaryrefslogtreecommitdiff
path: root/src/mongo/util/processinfo_solaris.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/processinfo_solaris.cpp')
-rw-r--r--src/mongo/util/processinfo_solaris.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/util/processinfo_solaris.cpp b/src/mongo/util/processinfo_solaris.cpp
index 6fa36cf48ca..53fda06efad 100644
--- a/src/mongo/util/processinfo_solaris.cpp
+++ b/src/mongo/util/processinfo_solaris.cpp
@@ -70,15 +70,15 @@ struct ProcPsinfo {
ProcPsinfo() {
FILE* f = fopen("/proc/self/psinfo", "r");
massert(16846,
- mongoutils::str::stream()
- << "couldn't open \"/proc/self/psinfo\": " << errnoWithDescription(),
+ mongoutils::str::stream() << "couldn't open \"/proc/self/psinfo\": "
+ << errnoWithDescription(),
f);
size_t num = fread(&psinfo, sizeof(psinfo), 1, f);
int err = errno;
fclose(f);
massert(16847,
- mongoutils::str::stream()
- << "couldn't read from \"/proc/self/psinfo\": " << errnoWithDescription(err),
+ mongoutils::str::stream() << "couldn't read from \"/proc/self/psinfo\": "
+ << errnoWithDescription(err),
num == 1);
}
psinfo_t psinfo;
@@ -88,15 +88,15 @@ struct ProcUsage {
ProcUsage() {
FILE* f = fopen("/proc/self/usage", "r");
massert(16848,
- mongoutils::str::stream()
- << "couldn't open \"/proc/self/usage\": " << errnoWithDescription(),
+ mongoutils::str::stream() << "couldn't open \"/proc/self/usage\": "
+ << errnoWithDescription(),
f);
size_t num = fread(&prusage, sizeof(prusage), 1, f);
int err = errno;
fclose(f);
massert(16849,
- mongoutils::str::stream()
- << "couldn't read from \"/proc/self/usage\": " << errnoWithDescription(err),
+ mongoutils::str::stream() << "couldn't read from \"/proc/self/usage\": "
+ << errnoWithDescription(err),
num == 1);
}
prusage_t prusage;