cpp-common/bt2c/logging.hpp: remove no-formatting ("str") alternatives
[babeltrace.git] / src / plugins / ctf / common / src / metadata / tsdl / parser.ypp
index 7ae25b69d3d8fa2233e2d60194a4ba64a089983c..bf2d90c595be7e7a36c549ffac6ce4762639faeb 100644 (file)
@@ -31,7 +31,7 @@ thread_local const ctf_scanner *currentCtfScanner;
         std::string str(size, '\0');                                                               \
         int written = snprintf(&str[0], size + 1, (_fmt), ##args);                                 \
         BT_ASSERT(size == written);                                                                \
-        BT_CPPLOGT_STR_SPEC(currentCtfScanner->logger, str.c_str());                               \
+        BT_CPPLOGT_SPEC(currentCtfScanner->logger, "{}", str.c_str());                             \
     } while (0)
 
 /* Join two lists, put "add" at the end of "head".  */
@@ -803,8 +803,7 @@ static int set_parent_node(struct ctf_node *node,
 
        switch (node->type) {
        case NODE_ROOT:
-               BT_CPPLOGE_STR_SPEC(currentCtfScanner->logger,
-                       "Trying to reparent root node.");
+               BT_CPPLOGE_SPEC(currentCtfScanner->logger, "Trying to reparent root node.");
                return -EINVAL;
 
        case NODE_EVENT:
This page took 0.02337 seconds and 4 git commands to generate.