support trace version 0.5
[lttv.git] / genevent-new / gentest.c
index 67556797628c5f91476c439420bbd2016e480e27..753ac4d7895663e5d0b668ce059fde17e1d9ebbb 100644 (file)
@@ -322,6 +322,8 @@ static inline void lttng_write_mystruct_myunion(
        }
        
        *len += size;
+
+       /* Assert : no varlen child. */
 }
 
 
@@ -428,9 +430,9 @@ static inline void lttng_write_mystruct(
 
        /* Variable length field */
        lttng_write_sequence_mystruct_mysequence(buffer, to_base, to, from, len, &obj->mysequence);
-       /* After this previous write, we are sure that *to is 0, and *to_base is
-        * aligned on the architecture size : to rest of alignment will be calculated
-        * statically. */
+       /* After this previous write, we are sure that *to is 0, *len is 0 and 
+        * *to_base is aligned on the architecture size : to rest of alignment will
+        * be calculated statically. */
 
        lttng_write_mystruct_myunion(buffer, to_base, to, from, len, &obj->myunion);
 
This page took 0.022525 seconds and 4 git commands to generate.