Fix: Fix self-assign warning on struct ustfork_clone_info init
[lttng-ust.git] / liblttng-ust / lttng-filter.c
index 2e9bc333a2ab1e419c6fdb6f12a42d3b8a954f8e..1a0921fd72ac0ca78b4cc7c3f08667ab5767c300 100644 (file)
@@ -184,7 +184,7 @@ int apply_field_reloc(struct ltt_event *event,
                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 */
@@ -291,7 +291,7 @@ void lttng_filter_event_link_bytecode(struct ltt_event *event,
 
        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");
        }
 }
 
@@ -315,7 +315,7 @@ void lttng_filter_wildcard_link_bytecode(struct session_wildcard *wildcard)
                ret = _lttng_filter_event_link_bytecode(event,
                                wildcard->filter_bytecode);
                if (ret) {
-                       fprintf(stderr, "[lttng filter] error linking wildcard bytecode\n");
+                       dbg_printf("[lttng filter] error linking wildcard bytecode");
                }
 
        }
This page took 0.023041 seconds and 4 git commands to generate.