X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Flib-logging.c;h=674546011f799d253e0e156f98e9848c8e6f7fab;hb=4d4b475dfb526d016e8162c3079320f4bfe741e7;hp=eedcae710854dc6f12c428ace7c6e7b43d09bcfe;hpb=07245ac23157616e3f4ff611341f18193de8e37d;p=babeltrace.git diff --git a/lib/lib-logging.c b/lib/lib-logging.c index eedcae71..67454601 100644 --- a/lib/lib-logging.c +++ b/lib/lib-logging.c @@ -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;