Use "growing" `GArray` to store string field's payload
[babeltrace.git] / lib / lib-logging.c
index eedcae710854dc6f12c428ace7c6e7b43d09bcfe..674546011f799d253e0e156f98e9848c8e6f7fab 100644 (file)
@@ -334,10 +334,10 @@ static inline void format_field_common(char **buf_ch, bool extended,
                struct bt_field_common_string *str =
                        BT_FROM_COMMON(field);
 
-               if (str->payload) {
-                       BT_ASSERT(str->payload);
+               if (str->buf) {
+                       BT_ASSERT(str->buf->data);
                        BUF_APPEND(", %spartial-value=\"%.32s\"",
-                               PRFIELD(str->payload->str));
+                               PRFIELD(str->buf->data));
 
                }
                break;
This page took 0.02263 seconds and 4 git commands to generate.