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

Ethan Jackson ethan at nicira.com
Tue Feb 8 22:48:18 UTC 2011


> +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.

Looks Good.




More information about the dev mailing list