From be1c68efc517f8226e5f9550cdaa903a77d131e6 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 11 Jan 2023 12:40:47 +0100 Subject: [PATCH] remove superfluous parantheses Signed-off-by: Steffen Vogel --- lib/path.cpp | 4 ++-- lib/path_source.cpp | 4 ++-- src/villas-pipe.cpp | 2 +- src/villas-signal.cpp | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/path.cpp b/lib/path.cpp index 96172fb90..28be09de3 100644 --- a/lib/path.cpp +++ b/lib/path.cpp @@ -144,7 +144,7 @@ void Path::startPoll() auto fds = ps->getNode()->getPollFDs(); for (auto fd : fds) { if (fd < 0) - throw RuntimeError("Failed to get file descriptor for node {}", (ps->getNode())->getName()); + throw RuntimeError("Failed to get file descriptor for node {}", ps->getNode()->getName()); /* This slot is only used if it is not masked */ struct pollfd pfd = { @@ -492,7 +492,7 @@ void Path::checkPrepared() /* Check that all path sources provide a file descriptor for polling if fixed rate is disabled */ for (auto ps : sources) { if (!(ps->getNode()->getFactory()->getFlags() & (int) NodeFactory::Flags::SUPPORTS_POLL)) - throw RuntimeError("Node {} can not be used in polling mode with path {}", (ps->getNode())->getName(), this->toString()); + throw RuntimeError("Node {} can not be used in polling mode with path {}", ps->getNode()->getName(), this->toString()); } } } diff --git a/lib/path_source.cpp b/lib/path_source.cpp index d630c6f7d..3fadf1153 100644 --- a/lib/path_source.cpp +++ b/lib/path_source.cpp @@ -193,9 +193,9 @@ void MasterPathSource::writeToSecondaries(struct Sample *smps[], unsigned cnt) for (auto sps : secondaries) { int sent = sps->getNode()->write(smps, cnt); if (sent < 0) - throw RuntimeError("Failed to write secondary path source {} of path {}", (sps->getNode())->getName(), path->toString()); + throw RuntimeError("Failed to write secondary path source {} of path {}", sps->getNode()->getName(), path->toString()); else if ((unsigned) sent < cnt) - path->logger->warn("Partial write to secondary path source {} of path {}", (sps->getNode())->getName(), path->toString()); + path->logger->warn("Partial write to secondary path source {} of path {}", sps->getNode()->getName(), path->toString()); } } diff --git a/src/villas-pipe.cpp b/src/villas-pipe.cpp index 33854324b..822caf22d 100644 --- a/src/villas-pipe.cpp +++ b/src/villas-pipe.cpp @@ -493,7 +493,7 @@ check: if (optarg == endptr) ret = node->getFactory()->stop(); if (ret) - throw RuntimeError("Failed to stop node type {}: reason={}", (node->getFactory())->getName(), ret); + throw RuntimeError("Failed to stop node type {}: reason={}", node->getFactory()->getName(), ret); #if defined(WITH_NODE_WEBSOCKET) && defined(WITH_WEB) /* Only start web subsystem if villas-pipe is used with a websocket node */ diff --git a/src/villas-signal.cpp b/src/villas-signal.cpp index aa724c8e9..88d61a799 100644 --- a/src/villas-signal.cpp +++ b/src/villas-signal.cpp @@ -255,7 +255,7 @@ check: if (optarg == endptr) ret = node->getFactory()->start(nullptr); if (ret) - throw RuntimeError("Failed to intialize node type {}: reason={}", (node->getFactory())->getName(), ret); + throw RuntimeError("Failed to intialize node type {}: reason={}", node->getFactory()->getName(), ret); ret = node->check(); if (ret)