static void cgroup_dump_details(struct rtnl_cls *cls, struct nl_dump_params *p) { struct rtnl_cgroup *c = rtnl_cls_data(cls); if (c->cg_mask & CGROUP_ATTR_EMATCH) { nl_dump_line(p, " ematch "); rtnl_ematch_tree_dump(c->cg_ematch, p); } else nl_dump(p, "no options.\n"); }
static void cgroup_dump_details(struct rtnl_tc *tc, void *data, struct nl_dump_params *p) { struct rtnl_cgroup *c = data; if (!c) return; if (c->cg_mask & CGROUP_ATTR_EMATCH) { nl_dump_line(p, " ematch "); if (c->cg_ematch) rtnl_ematch_tree_dump(c->cg_ematch, p); else nl_dump(p, "<no tree>"); } else nl_dump(p, "no options"); }