1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

make compatible to fmt version 9.0.3

Signed-off-by: Manuel Pitz <manuel.pitz@eonerc.rwth-aachen.de>
This commit is contained in:
Manuel Pitz 2023-01-10 16:02:40 +01:00
parent 1a01012e7c
commit c4bce72c04
3 changed files with 4 additions and 4 deletions

View file

@ -71,7 +71,7 @@ int FpgaNode::parse(json_t *cfg, const uuid_t sn_uuid)
"polling", &polling
);
if (ret)
throw ConfigError(cfg, err, "node-config-fpga", "Failed to parse configuration of node {}", *this);
throw ConfigError(cfg, err, "node-config-fpga", "Failed to parse configuration of node {}", this->getName());
if (card)
cardName = card;

View file

@ -199,7 +199,7 @@ int villas::node::kafka_parse(NodeCompat *n, json_t *json)
throw ConfigError(json, "node-config-node-kafka-protocol", "Invalid security protocol: {}", protocol);
if (!k->produce && !k->consume)
throw ConfigError(json, "node-config-node-kafka", "At least one topic has to be specified for node {}", *n);
throw ConfigError(json, "node-config-node-kafka", "At least one topic has to be specified for node {}", n->getName());
if (json_ssl) {
const char *ca;
@ -208,7 +208,7 @@ int villas::node::kafka_parse(NodeCompat *n, json_t *json)
"ca", &ca
);
if (ret)
throw ConfigError(json_ssl, err, "node-config-node-kafka-ssl", "Failed to parse SSL configuration of node {}", *n);
throw ConfigError(json_ssl, err, "node-config-node-kafka-ssl", "Failed to parse SSL configuration of node {}", n->getName());
k->ssl.ca = strdup(ca);
}

View file

@ -508,7 +508,7 @@ graph_t * SuperNode::getGraph()
uuid_unparse(n->getUuid(), uuid_str);
set_attr(nodeMap[n], "shape", "ellipse");
set_attr(nodeMap[n], "tooltip", fmt::format("type={}, uuid={}", *n->getFactory(), uuid_str));
set_attr(nodeMap[n], "tooltip", fmt::format("type={}, uuid={}", (n->getFactory())->getName(), uuid_str));
// set_attr(nodeMap[n], "fixedsize", "true");
// set_attr(nodeMap[n], "width", "0.15");
// set_attr(nodeMap[n], "height", "0.15");