[ovs-dev] [kernel-reload 7/8] ovs-vsctl: Add formatting options for the "list" and "find" commands.

Ben Pfaff blp at nicira.com
Wed Feb 9 00:10:51 UTC 2011


On Tue, Feb 08, 2011 at 02:48:18PM -0800, Ethan Jackson wrote:
> > +static struct table *
> > +list_make_table(const struct ovsdb_idl_column **columns, size_t n_columns)
> > +{
> > + ? ?struct table *out;
> > + ? ?size_t i;
> > +
> > + ? ?out = xmalloc(sizeof *out);
> > + ? ?table_init(out);
> > +
> > + ? ?for (i = 0; i < n_columns; i++) {
> > + ? ? ? ?const struct ovsdb_idl_column *column = columns[i];
> > + ? ? ? ?const char *column_name = column ? column->name : "_uuid";
> > +
> > + ? ? ? ?table_add_column(out, "%s", column_name);
> > + ? ?}
> > +
> > + ? ?return out;
> > +}
> > +
> > +
> There's an extra new line here.

Thanks, fixed.




More information about the dev mailing list