From: Jérémie Galarneau Date: Thu, 17 Apr 2014 14:51:51 +0000 (-0400) Subject: Docs: CTF-IR sequence's length field must be unsigned X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=152e73317ae62636f7cc75544a11c564ab3ef836;p=deliverable%2Fbabeltrace.git Docs: CTF-IR sequence's length field must be unsigned Signed-off-by: Jérémie Galarneau --- diff --git a/formats/ctf/ir/event-fields.c b/formats/ctf/ir/event-fields.c index 973c9bdd3..a60548596 100644 --- a/formats/ctf/ir/event-fields.c +++ b/formats/ctf/ir/event-fields.c @@ -269,6 +269,7 @@ int bt_ctf_field_sequence_set_length(struct bt_ctf_field *field, length_type = container_of(length_field->type, struct bt_ctf_field_type_integer, parent); + /* The length field must be unsigned */ if (length_type->declaration.signedness) { ret = -1; goto end; diff --git a/include/babeltrace/ctf-ir/event-fields.h b/include/babeltrace/ctf-ir/event-fields.h index c617dac2c..332d7d473 100644 --- a/include/babeltrace/ctf-ir/event-fields.h +++ b/include/babeltrace/ctf-ir/event-fields.h @@ -116,7 +116,8 @@ extern struct bt_ctf_field *bt_ctf_field_sequence_get_length( * Set the sequence's length field. * * @param sequence Sequence field instance. - * @param length_field Integer field instance indicating the sequence's length. + * @param length_field Unsigned integer field instance indicating the + * sequence's length. * * Returns 0 on success, a negative value on error. */