}
int bt_ctf_field_type_integer_set_size(struct bt_ctf_field_type *type,
- size_t size)
+ unsigned int size)
{
int ret = 0;
struct bt_ctf_field_type_integer *integer;
if (size == 0 || size > 64) {
BT_LOGW("Invalid parameter: size must be between 1 and 64: "
- "addr=%p, size=%zu", type, size);
+ "addr=%p, size=%u", type, size);
ret = -1;
goto end;
}
integer = container_of(type, struct bt_ctf_field_type_integer, parent);
integer->size = size;
- BT_LOGV("Set integer field type's size: addr=%p, size=%zu",
+ BT_LOGV("Set integer field type's size: addr=%p, size=%u",
type, size);
end:
return ret;
}
switch (base) {
+ case BT_CTF_INTEGER_BASE_UNSPECIFIED:
case BT_CTF_INTEGER_BASE_BINARY:
case BT_CTF_INTEGER_BASE_OCTAL:
case BT_CTF_INTEGER_BASE_DECIMAL:
byte_order != BT_CTF_BYTE_ORDER_LITTLE_ENDIAN &&
byte_order != BT_CTF_BYTE_ORDER_BIG_ENDIAN &&
byte_order != BT_CTF_BYTE_ORDER_NETWORK) {
- BT_LOGW("Invalid parameter: unknown byte order: "
+ BT_LOGW("Invalid parameter: invalid byte order: "
"addr=%p, bo=%s", type,
bt_ctf_byte_order_string(byte_order));
ret = -1;
switch (base) {
case BT_CTF_INTEGER_BASE_DECIMAL:
+ case BT_CTF_INTEGER_BASE_UNSPECIFIED:
base_string = "decimal";
break;
case BT_CTF_INTEGER_BASE_HEXADECIMAL:
struct bt_ctf_field_type *type)
{
struct bt_ctf_field_type *copy;
- struct bt_ctf_field_type_string *string;
BT_LOGD("Copying string field type's: addr=%p", type);
copy = bt_ctf_field_type_string_create();
goto end;
}
- string = container_of(type, struct bt_ctf_field_type_string,
- parent);
BT_LOGD("Copied string field type: original-ft-addr=%p, copy-ft-addr=%p",
type, copy);
end: