ovsdb-client: Make "dump" print table names in default output format too.
authorBen Pfaff <blp@nicira.com>
Thu, 21 Oct 2010 17:48:56 +0000 (10:48 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 21 Oct 2010 17:48:56 +0000 (10:48 -0700)
The "dump" command printed table names in CSV and HTML output formats but
they were omitted in the default tabular form.  This commit corrects the
discrepancy.

Reported-by: Brad Hall <brad@nicira.com>
ovsdb/ovsdb-client.c

index b8a2fa4fd2220b4693dace25bf1a786d0c98d7fd..326e3b1a5595b45dde664e4babeb1cb5e2bdcbb7 100644 (file)
@@ -441,6 +441,10 @@ table_print_table__(const struct table *table)
         putchar('\n');
     }
 
+    if (table->caption) {
+        puts(table->caption);
+    }
+
     if (output_headings) {
         for (x = 0; x < table->n_columns; x++) {
             const struct column *column = &table->columns[x];