From: Ben Pfaff Date: Thu, 7 Jul 2011 19:25:04 +0000 (-0700) Subject: ovsdb-tool: Put version number in comment when compacting or converting. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bdea45ba4bac25504f3fe23909b656ec6ecc214;p=openvswitch ovsdb-tool: Put version number in comment when compacting or converting. Adding the version number can make it clear what version of OVS screwed something up as part of an upgrade or downgrade. --- diff --git a/ovsdb/ovsdb-tool.c b/ovsdb/ovsdb-tool.c index 07d27293..822eb6b2 100644 --- a/ovsdb/ovsdb-tool.c +++ b/ovsdb/ovsdb-tool.c @@ -228,7 +228,8 @@ compact_or_convert(const char *src_name, const char *dst_name, static void do_compact(int argc OVS_UNUSED, char *argv[]) { - compact_or_convert(argv[1], argv[2], NULL, "compacted by ovsdb-tool"); + compact_or_convert(argv[1], argv[2], NULL, + "compacted by ovsdb-tool "VERSION BUILDNR); } static void @@ -239,7 +240,7 @@ do_convert(int argc OVS_UNUSED, char *argv[]) check_ovsdb_error(ovsdb_schema_from_file(schema_file_name, &new_schema)); compact_or_convert(argv[1], argv[3], new_schema, - "converted by ovsdb-tool"); + "converted by ovsdb-tool "VERSION BUILDNR); ovsdb_schema_destroy(new_schema); }