Clean-up: coverity warns of uncaught exception during logging
[lttng-tools.git] / src / common / uuid.cpp
index bef038ac6f6675b915a9b3ee816b736918614190..4a1038b330caf66e4be141bc251e5dcd14b965b6 100644 (file)
@@ -85,10 +85,8 @@ int lttng_uuid_generate(lttng_uuid& uuid_out)
                try {
                        srand(lttng::random::produce_best_effort_random_seed());
                } catch (std::exception& e) {
-                       ERR("%s",
-                                       fmt::format("Failed to initialize random seed during generation of UUID: {}",
-                                                       e.what())
-                                                       .c_str());
+                       ERR("Failed to initialize random seed during generation of UUID: %s",
+                                       e.what());
                        ret = -1;
                        goto end;
                }
This page took 0.02312 seconds and 4 git commands to generate.