/* TODO: lookup */
} else {
- fprintf(fd, "[error] %s: unknown attribute name %s\n",
+ fprintf(fd, "[warning] %s: unknown attribute name %s\n",
__func__, left->u.unary_expression.u.string);
- return NULL;
+ /* Fall-through after warning */
}
}
if (!has_size) {
}
has_alignment = 1;
} else {
- fprintf(fd, "[error] %s: unknown attribute name %s\n",
+ fprintf(fd, "[warning] %s: unknown attribute name %s\n",
__func__, left->u.unary_expression.u.string);
- return NULL;
+ /* Fall-through after warning */
}
}
if (!has_mant_dig) {
}
encoding_c = right->u.unary_expression.u.string;
} else {
- fprintf(fd, "[error] %s: unknown attribute name %s\n",
+ fprintf(fd, "[warning] %s: unknown attribute name %s\n",
__func__, left->u.unary_expression.u.string);
- return NULL;
+ /* Fall-through after warning */
}
}
if (encoding_c && !strcmp(encoding_c, "ASCII"))
}
CTF_EVENT_SET_FIELD(event, loglevel_value);
} else {
- fprintf(fd, "[error] %s: attribute \"%s\" is unknown in event declaration.\n", __func__, left);
- ret = -EINVAL;
- goto error;
+ fprintf(fd, "[warning] %s: attribute \"%s\" is unknown in event declaration.\n", __func__, left);
+ /* Fall-through after warning */
}
error:
g_free(left);
}
stream->packet_context_decl = container_of(declaration, struct declaration_struct, p);
} else {
- fprintf(fd, "[error] %s: attribute \"%s\" is unknown in stream declaration.\n", __func__, left);
- ret = -EINVAL;
- goto error;
+ fprintf(fd, "[warning] %s: attribute \"%s\" is unknown in stream declaration.\n", __func__, left);
+ /* Fall-through after warning */
}
error:
}
trace->packet_header_decl = container_of(declaration, struct declaration_struct, p);
} else {
- fprintf(fd, "[error] %s: attribute \"%s\" is unknown in trace declaration.\n", __func__, left);
- ret = -EINVAL;
- goto error;
+ fprintf(fd, "[warning] %s: attribute \"%s\" is unknown in trace declaration.\n", __func__, left);
}
error: