On Fri, Oct 24, 2014 at 12:33:51AM +0200, Thomas Graf wrote:
> On 10/23/14 at 02:15pm, Jarno Rajahalme wrote:
> > @@ -472,8 +470,8 @@ pvector_verify(const struct pvector *pvec)
> > PVECTOR_FOR_EACH (ptr, pvec) {
> > priority = cursor__.vector[cursor__.entry_idx].priority;
> > if (priority > prev_priority) {
> > - VLOG_ABORT("Priority vector is out of order (%u > %u)",
> > - priority, prev_priority);
> > + ovs_abort(0, "Priority vector is out of order (%u > %u)",
> > + priority, prev_priority);
> > }
> > prev_priority = priority;
> > }
> > @@ -534,14 +532,14 @@ check_tables(const struct classifier *cls, int
> > n_tables, int n_rules,
> > PVECTOR_FOR_EACH (iter, &cls->subtables) {
> > if (iter == table) {
> > if (found) {
> > - VLOG_ABORT("Subtable %p duplicated in 'subtables'.",
> > - table);
> > + ovs_abort(0, "Subtable %p duplicated in 'subtables'.",
> > + table);
> > }
> > found = true;
> > }
> > }
> > if (!found) {
> > - VLOG_ABORT("Subtable %p not found from 'subtables'.", table);
> > + ovs_abort(0, "Subtable %p not found from 'subtables'.", table);
> > }
> >
> > assert(!cmap_is_empty(&table->rules));
>
> I found the VLOG_DECLARE_THIS_MODULE() approach in the original
> patch cleaner than this.
Or just define a test_classifier module.
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev