Fixed warnings printed by shared file code to be in line with shared memory warnings.

This commit is contained in:
Thulinma 2017-09-11 14:38:04 +02:00
parent 17d12117d9
commit a4dc6c3944

View file

@ -571,12 +571,12 @@ namespace IPC {
}
}
if (handle == -1) {
perror(std::string("open for file " + name + " failed").c_str());
HIGH_MSG("shf_open for page %s failed: %s", name.c_str(), strerror(errno));
return;
}
if (master) {
if (ftruncate(handle, len) < 0) {
perror(std::string("ftruncate to len for file " + name + " failed").c_str());
INFO_MSG("ftruncate to len for shf page %s failed: %s", name.c_str(), strerror(errno));
return;
}
} else {