/*
- * Copyright (C) 2005-2013 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2014 Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
if (!f->help.short_help)
continue;
- printf_or_die("\nOptions for %s:", f->name);
+ printf_or_die("\nOptions for %s (%s):", f->name,
+ f->help.purpose);
ggo_print_help(&f->help, flags);
}
}
*/
void generic_filter_pre_select(struct sched *s, struct task *t)
{
- struct filter_node *fn = container_of(t, struct filter_node, task);
+ struct filter_node *fn = task_context(t);
- t->error = 0;
if (btr_node_status(fn->btrn, fn->min_iqs, BTR_NT_INTERNAL) != 0)
sched_min_delay(s);
}