remove superfluous parantheses

Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
This commit is contained in:
Steffen Vogel 2023-01-11 12:40:47 +01:00
parent cdd8ad93e5
commit be1c68efc5
4 changed files with 6 additions and 6 deletions

View File

@ -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());
}
}
}

View File

@ -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());
}
}

View File

@ -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 */

View File

@ -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)