printf("%g", (double) attr->value.u.side_float_binary16);
break;
#else
- printf("ERROR: Unsupported binary16 float type\n");
+ fprintf(stderr, "ERROR: Unsupported binary16 float type\n");
abort();
#endif
case SIDE_ATTR_TYPE_FLOAT_BINARY32:
printf("%g", (double) attr->value.u.side_float_binary32);
break;
#else
- printf("ERROR: Unsupported binary32 float type\n");
+ fprintf(stderr, "ERROR: Unsupported binary32 float type\n");
abort();
#endif
case SIDE_ATTR_TYPE_FLOAT_BINARY64:
printf("%g", (double) attr->value.u.side_float_binary64);
break;
#else
- printf("ERROR: Unsupported binary64 float type\n");
+ fprintf(stderr, "ERROR: Unsupported binary64 float type\n");
abort();
#endif
case SIDE_ATTR_TYPE_FLOAT_BINARY128:
printf("%Lg", (long double) attr->value.u.side_float_binary128);
break;
#else
- printf("ERROR: Unsupported binary128 float type\n");
+ fprintf(stderr, "ERROR: Unsupported binary128 float type\n");
abort();
#endif
case SIDE_ATTR_TYPE_STRING:
printf("\"%s\"", attr->value.u.string);
break;
default:
- printf("<UNKNOWN TYPE>");
+ fprintf(stderr, "ERROR: <UNKNOWN ATTRIBUTE TYPE>");
abort();
}
printf(" }");
int64_t value;
if (type_desc->u.side_enum.elem_type->type != item->type) {
- printf("ERROR: Unexpected enum element type\n");
+ fprintf(stderr, "ERROR: Unexpected enum element type\n");
abort();
}
switch (item->type) {
value = (int64_t) item->u.side_s64;
break;
default:
- printf("ERROR: Unexpected enum element type\n");
+ fprintf(stderr, "ERROR: Unexpected enum element type\n");
abort();
}
print_attributes("attr: ", mappings->attr, mappings->nr_attr);
const struct side_enum_mapping *mapping = &mappings->mappings[i];
if (mapping->range_end < mapping->range_begin) {
- printf("ERROR: Unexpected enum range: %" PRIu64 "-%" PRIu64 "\n",
+ fprintf(stderr, "ERROR: Unexpected enum range: %" PRIu64 "-%" PRIu64 "\n",
mapping->range_begin, mapping->range_end);
abort();
}
stride_bit = 64;
break;
default:
- printf("ERROR: Unexpected enum element type\n");
+ fprintf(stderr, "ERROR: Unexpected enum element type\n");
abort();
}
return stride_bit;
nr_items = item->u.side_vla->len;
break;
default:
- printf("ERROR: Unexpected enum element type\n");
+ fprintf(stderr, "ERROR: Unexpected enum element type\n");
abort();
}
int64_t bit;
if (mapping->range_begin < 0 || mapping->range_end < mapping->range_begin) {
- printf("ERROR: Unexpected enum bitmap range: %" PRIu64 "-%" PRIu64 "\n",
+ fprintf(stderr, "ERROR: Unexpected enum bitmap range: %" PRIu64 "-%" PRIu64 "\n",
mapping->range_begin, mapping->range_end);
abort();
}
case SIDE_TYPE_ARRAY:
break;
default:
- printf("ERROR: type mismatch between description and arguments\n");
+ fprintf(stderr, "ERROR: type mismatch between description and arguments\n");
abort();
break;
}
case SIDE_TYPE_VLA:
break;
default:
- printf("ERROR: type mismatch between description and arguments\n");
+ fprintf(stderr, "ERROR: type mismatch between description and arguments\n");
abort();
break;
}
case SIDE_TYPE_S64:
break;
default:
- printf("ERROR: type mismatch between description and arguments\n");
+ fprintf(stderr, "ERROR: type mismatch between description and arguments\n");
abort();
break;
}
case SIDE_TYPE_VLA:
break;
default:
- printf("ERROR: type mismatch between description and arguments\n");
+ fprintf(stderr, "ERROR: type mismatch between description and arguments\n");
abort();
break;
}
default:
if (type_desc->type != item->type) {
- printf("ERROR: type mismatch between description and arguments\n");
+ fprintf(stderr, "ERROR: type mismatch between description and arguments\n");
abort();
}
break;
printf("%g", (double) item->u.side_float_binary16);
break;
#else
- printf("ERROR: Unsupported binary16 float type\n");
+ fprintf(stderr, "ERROR: Unsupported binary16 float type\n");
abort();
#endif
case SIDE_TYPE_FLOAT_BINARY32:
printf("%g", (double) item->u.side_float_binary32);
break;
#else
- printf("ERROR: Unsupported binary32 float type\n");
+ fprintf(stderr, "ERROR: Unsupported binary32 float type\n");
abort();
#endif
case SIDE_TYPE_FLOAT_BINARY64:
printf("%g", (double) item->u.side_float_binary64);
break;
#else
- printf("ERROR: Unsupported binary64 float type\n");
+ fprintf(stderr, "ERROR: Unsupported binary64 float type\n");
abort();
#endif
case SIDE_TYPE_FLOAT_BINARY128:
printf("%Lg", (long double) item->u.side_float_binary128);
break;
#else
- printf("ERROR: Unsupported binary128 float type\n");
+ fprintf(stderr, "ERROR: Unsupported binary128 float type\n");
abort();
#endif
case SIDE_TYPE_STRING:
tracer_print_dynamic(&item->u.dynamic);
break;
default:
- printf("<UNKNOWN TYPE>");
+ fprintf(stderr, "<UNKNOWN TYPE>");
abort();
}
printf(" }");
int i;
if (type_desc->u.side_struct->nr_fields != side_sav_len) {
- printf("ERROR: number of fields mismatch between description and arguments of structure\n");
+ fprintf(stderr, "ERROR: number of fields mismatch between description and arguments of structure\n");
abort();
}
print_attributes("attr: ", type_desc->u.side_struct->attr, type_desc->u.side_struct->nr_attr);
int i;
if (type_desc->u.side_array.length != side_sav_len) {
- printf("ERROR: length mismatch between description and arguments of array\n");
+ fprintf(stderr, "ERROR: length mismatch between description and arguments of array\n");
abort();
}
print_attributes("attr: ", type_desc->u.side_array.attr, type_desc->u.side_array.nr_attr);
case SIDE_VISITOR_STATUS_OK:
break;
case SIDE_VISITOR_STATUS_ERROR:
- printf("ERROR: Visitor error\n");
+ fprintf(stderr, "ERROR: Visitor error\n");
abort();
}
printf(" ]");
break;
default:
- printf("ERROR: Unexpected type\n");
+ fprintf(stderr, "ERROR: Unexpected type\n");
abort();
}
return;
type_error:
- printf("ERROR: type mismatch\n");
+ fprintf(stderr, "ERROR: type mismatch\n");
abort();
}
break;
default:
- printf("ERROR: Unexpected type\n");
+ fprintf(stderr, "ERROR: Unexpected type\n");
abort();
}
return;
type_error:
- printf("ERROR: type mismatch\n");
+ fprintf(stderr, "ERROR: type mismatch\n");
abort();
}
case SIDE_VISITOR_STATUS_OK:
break;
case SIDE_VISITOR_STATUS_ERROR:
- printf("ERROR: Visitor error\n");
+ fprintf(stderr, "ERROR: Visitor error\n");
abort();
}
printf(" ]");
case SIDE_VISITOR_STATUS_OK:
break;
case SIDE_VISITOR_STATUS_ERROR:
- printf("ERROR: Visitor error\n");
+ fprintf(stderr, "ERROR: Visitor error\n");
abort();
}
printf(" ]");
printf("%g", (double) item->u.side_basic.u.side_float_binary16);
break;
#else
- printf("ERROR: Unsupported binary16 float type\n");
+ fprintf(stderr, "ERROR: Unsupported binary16 float type\n");
abort();
#endif
case SIDE_DYNAMIC_TYPE_FLOAT_BINARY32:
printf("%g", (double) item->u.side_basic.u.side_float_binary32);
break;
#else
- printf("ERROR: Unsupported binary32 float type\n");
+ fprintf(stderr, "ERROR: Unsupported binary32 float type\n");
abort();
#endif
case SIDE_DYNAMIC_TYPE_FLOAT_BINARY64:
printf("%g", (double) item->u.side_basic.u.side_float_binary64);
break;
#else
- printf("ERROR: Unsupported binary64 float type\n");
+ fprintf(stderr, "ERROR: Unsupported binary64 float type\n");
abort();
#endif
case SIDE_DYNAMIC_TYPE_FLOAT_BINARY128:
printf("%Lg", (long double) item->u.side_basic.u.side_float_binary128);
break;
#else
- printf("ERROR: Unsupported binary128 float type\n");
+ fprintf(stderr, "ERROR: Unsupported binary128 float type\n");
abort();
#endif
case SIDE_DYNAMIC_TYPE_STRING:
tracer_print_dynamic_vla_visitor(item);
break;
default:
- printf("<UNKNOWN TYPE>");
+ fprintf(stderr, "<UNKNOWN TYPE>");
abort();
}
printf(" }");
printf("provider: %s, event: %s", desc->provider_name, desc->event_name);
if (desc->nr_fields != side_sav_len) {
- printf("ERROR: number of fields mismatch between description and arguments\n");
+ fprintf(stderr, "ERROR: number of fields mismatch between description and arguments\n");
abort();
}
print_attributes(", attributes: ", desc->attr, desc->nr_attr);
tracer_print_static_fields(desc, sav_desc, &nr_fields);
if (side_unlikely(!(desc->flags & SIDE_EVENT_FLAG_VARIADIC))) {
- printf("ERROR: unexpected non-variadic event description\n");
+ fprintf(stderr, "ERROR: unexpected non-variadic event description\n");
abort();
}
printf("%s", var_struct->nr_attr && nr_fields ? ", " : "");