From c4bce72c043cac500ad1f356f04f579f3187c15a Mon Sep 17 00:00:00 2001 From: Manuel Pitz Date: Tue, 10 Jan 2023 16:02:40 +0100 Subject: [PATCH] make compatible to fmt version 9.0.3 Signed-off-by: Manuel Pitz --- lib/nodes/fpga.cpp | 2 +- lib/nodes/kafka.cpp | 4 ++-- lib/super_node.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/nodes/fpga.cpp b/lib/nodes/fpga.cpp index 3049bf26f..0f8c08ee1 100644 --- a/lib/nodes/fpga.cpp +++ b/lib/nodes/fpga.cpp @@ -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; diff --git a/lib/nodes/kafka.cpp b/lib/nodes/kafka.cpp index c8902b5a8..ac5d89052 100644 --- a/lib/nodes/kafka.cpp +++ b/lib/nodes/kafka.cpp @@ -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); } diff --git a/lib/super_node.cpp b/lib/super_node.cpp index dafbe0681..72a710af5 100644 --- a/lib/super_node.cpp +++ b/lib/super_node.cpp @@ -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");