struct field_ref *field_ref;
uint32_t field_offset = 0;
- fprintf(stderr, "Apply reloc: %u %s\n", reloc_offset, field_name);
+ dbg_printf("Apply reloc: %u %s\n", reloc_offset, field_name);
/* Ensure that the reloc is within the code */
if (runtime_len - reloc_offset < sizeof(uint16_t))
if (event->filter || event->filter_data)
return 0;
- fprintf(stderr, "Linking\n");
+ dbg_printf("Linking\n");
/* We don't need the reloc table in the runtime */
runtime_alloc_len = sizeof(*runtime) + filter_bytecode->reloc_offset;
* apply relocs. Those are a uint16_t (offset in bytecode)
* followed by a string (field name).
*/
- fprintf(stderr, "iter for %d %d\n", filter_bytecode->reloc_offset, filter_bytecode->len);
for (offset = filter_bytecode->reloc_offset;
offset < filter_bytecode->len;
offset = next_offset) {
}
bytecode->len = lum->u.filter.data_size;
bytecode->reloc_offset = lum->u.filter.reloc_offset;
- fprintf(stderr, "RECV len %d rel %d\n",
- lum->u.filter.data_size,
- lum->u.filter.reloc_offset);
if (ops->cmd) {
ret = ops->cmd(lum->handle, lum->cmd,
(unsigned long) bytecode,