diff options
author | Ben Pfaff <blp@nicira.com> | 2011-10-06 11:23:54 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-10-24 09:19:34 -0700 |
commit | a0a15a0071bbe31dc4e13fa1ef29edecd60cfa93 (patch) | |
tree | f1542f2c7560f09ede8c6f0a2e3b7f8feaf00e78 /ovsdb/ovsdb-tool.c | |
parent | 66abb12bf48104e0d2b9be8b9d14252a3afd2a4a (diff) | |
download | openvswitch-a0a15a0071bbe31dc4e13fa1ef29edecd60cfa93.tar.gz |
ovsdb-tool: Add abbreviated UUIDs to "show-log" even when we have a name.
The "show-log" command tries to give names to the rows to make it easier to
understand what's going on, but it's still important to see at least
partial UUIDs so that one can search the output for references to the rows
by UUID.
Diffstat (limited to 'ovsdb/ovsdb-tool.c')
-rw-r--r-- | ovsdb/ovsdb-tool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ovsdb/ovsdb-tool.c b/ovsdb/ovsdb-tool.c index 0e4a52079..501a6738b 100644 --- a/ovsdb/ovsdb-tool.c +++ b/ovsdb/ovsdb-tool.c @@ -366,12 +366,12 @@ print_db_changes(struct shash *tables, struct shash *names) if (!old_name) { if (new_name) { - printf(" insert row %s:\n", new_name); + printf(" insert row %s (%.8s):\n", new_name, row_uuid); } else { printf(" insert row %.8s:\n", row_uuid); } } else { - printf(" row %s:\n", old_name); + printf(" row %s (%.8s):\n", old_name, row_uuid); } if (columns->type == JSON_OBJECT) { |