*
*/
+#include "uuid.hpp"
+
#include <common/compat/string.hpp>
#include <common/error.hpp>
#include <common/format.hpp>
#include <string.h>
#include <time.h>
-#include "uuid.hpp"
-
namespace {
const lttng_uuid nil_uuid = {};
bool lttng_uuid_is_init;
}
/* Scan to a temporary location in case of a partial match. */
- if (sscanf(str_in, LTTNG_UUID_FMT, LTTNG_UUID_SCAN_VALUES(uuid_scan)) !=
- LTTNG_UUID_LEN) {
+ if (sscanf(str_in, LTTNG_UUID_FMT, LTTNG_UUID_SCAN_VALUES(uuid_scan)) != LTTNG_UUID_LEN) {
ret = -1;
goto end;
}
srand(lttng::random::produce_best_effort_random_seed());
} catch (std::exception& e) {
ERR("Failed to initialize random seed during generation of UUID: %s",
- e.what());
+ e.what());
ret = -1;
goto end;
}