From a4dc6c3944a10827152c7f3fe3746e798b2b55b5 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 11 Sep 2017 14:38:04 +0200 Subject: [PATCH] Fixed warnings printed by shared file code to be in line with shared memory warnings. --- lib/shared_memory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/shared_memory.cpp b/lib/shared_memory.cpp index 24421402..5a06276d 100644 --- a/lib/shared_memory.cpp +++ b/lib/shared_memory.cpp @@ -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 {