sessiond: document effect of rotated_after_last_stop on clear
[lttng-tools.git] / src / bin / lttng-sessiond / ust-metadata.c
index 0eccac654883a6f4c0a1ea92604518b0aed13210..c29ed348b05fe006492d32345992aa47e1f2bd40 100644 (file)
@@ -85,8 +85,10 @@ int get_count_order(unsigned int count)
        int order;
 
        order = fls(count) - 1;
-       if (count & (count - 1))
+       if (count & (count - 1)) {
                order++;
+       }
+       assert(order >= 0);
        return order;
 }
 
@@ -1006,8 +1008,8 @@ int ust_metadata_session_statedump(struct ust_registry_session *session,
                uint32_t major,
                uint32_t minor)
 {
-       char uuid_s[UUID_STR_LEN],
-               clock_uuid_s[UUID_STR_LEN];
+       char uuid_s[LTTNG_UUID_STR_LEN],
+               clock_uuid_s[LTTNG_UUID_STR_LEN];
        int ret = 0;
 
        assert(session);
This page took 0.024225 seconds and 5 git commands to generate.