return -EINVAL;
/* Check if field offset is too large for 16-bit offset */
- if (field_offset > FILTER_BYTECODE_MAX_LEN)
+ if (field_offset > FILTER_BYTECODE_MAX_LEN - 1)
return -EINVAL;
/* set type */
ret = _lttng_filter_event_link_bytecode(event, filter_bytecode);
if (ret) {
- fprintf(stderr, "[lttng filter] error linking event bytecode\n");
+ dbg_printf("[lttng filter] warning: cannot link event bytecode\n");
}
}