summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/vmcircbuf_mmap_shm_open.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-runtime/lib/vmcircbuf_mmap_shm_open.cc')
-rw-r--r--gnuradio-runtime/lib/vmcircbuf_mmap_shm_open.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/gnuradio-runtime/lib/vmcircbuf_mmap_shm_open.cc b/gnuradio-runtime/lib/vmcircbuf_mmap_shm_open.cc
index 7d63dc08d1..da71aafc52 100644
--- a/gnuradio-runtime/lib/vmcircbuf_mmap_shm_open.cc
+++ b/gnuradio-runtime/lib/vmcircbuf_mmap_shm_open.cc
@@ -74,8 +74,8 @@ vmcircbuf_mmap_shm_open::vmcircbuf_mmap_shm_open(int size) : gr::vmcircbuf(size)
// Where the "portable format" doesn't work, we try building
// a full filesystem pathname pointing into a suitable temporary directory.
- seg_name = str(boost::format("%s/gnuradio-%d-%d") %
- gr::tmp_path() % getpid() % s_seg_counter);
+ seg_name = str(boost::format("%s/gnuradio-%d-%d") % gr::tmp_path() %
+ getpid() % s_seg_counter);
}
shm_fd = shm_open(seg_name.c_str(), O_RDWR | O_CREAT | O_EXCL, 0600);
@@ -91,9 +91,8 @@ vmcircbuf_mmap_shm_open::vmcircbuf_mmap_shm_open(int size) : gr::vmcircbuf(size)
EEXIST) // Named segment already exists (shouldn't happen). Try again
continue;
- static std::string msg =
- str(boost::format("gr::vmcircbuf_mmap_shm_open: shm_open [%s]") %
- seg_name);
+ static std::string msg = str(
+ boost::format("gr::vmcircbuf_mmap_shm_open: shm_open [%s]") % seg_name);
perror(msg.c_str());
throw std::runtime_error("gr::vmcircbuf_mmap_shm_open");
}