X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fuuid.cpp;fp=src%2Fcommon%2Fuuid.cpp;h=8aa42a4e6fc4b579d55f84d4bcceca43f70a4ef0;hb=5b9eda8a30a21a1c9de4572dd2b397c7cf923fa1;hp=ddf0fb509c9fe45fab7067820b1032e657c4e3a3;hpb=64f8e4936e6d54cff9c1f6d642a1b6745b7984d9;p=lttng-tools.git diff --git a/src/common/uuid.cpp b/src/common/uuid.cpp index ddf0fb509..8aa42a4e6 100644 --- a/src/common/uuid.cpp +++ b/src/common/uuid.cpp @@ -83,7 +83,7 @@ int lttng_uuid_generate(lttng_uuid& uuid_out) if (!lttng_uuid_is_init) { try { srand(lttng::random::produce_best_effort_random_seed()); - } catch (std::exception& e) { + } catch (const std::exception& e) { ERR("Failed to initialize random seed during generation of UUID: %s", e.what()); ret = -1;