From: Ethan Jackson Date: Fri, 13 Jul 2012 20:10:01 +0000 (-0700) Subject: userspace: Log version on startup. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a890678229e7e72703ef3b27d8a98ccd9d7c4446;p=openvswitch userspace: Log version on startup. It's convenient to have the OVS version directly in the logs so one doesn't have to go digging through ovs-bugtool output to find it. Signed-off-by: Ethan Jackson --- diff --git a/ovsdb/ovsdb-server.c b/ovsdb/ovsdb-server.c index 7f53e177..8412cbb9 100644 --- a/ovsdb/ovsdb-server.c +++ b/ovsdb/ovsdb-server.c @@ -105,6 +105,8 @@ main(int argc, char *argv[]) daemonize_start(); + VLOG_INFO("%s (Open vSwitch) %s", program_name, VERSION); + error = ovsdb_file_open(file_name, false, &db, &file); if (error) { ovs_fatal(0, "%s", ovsdb_error_to_string(error)); diff --git a/vswitchd/ovs-vswitchd.c b/vswitchd/ovs-vswitchd.c index 6062a40a..3b651788 100644 --- a/vswitchd/ovs-vswitchd.c +++ b/vswitchd/ovs-vswitchd.c @@ -85,6 +85,8 @@ main(int argc, char *argv[]) daemonize_start(); + VLOG_INFO("%s (Open vSwitch) %s", program_name, VERSION); + if (want_mlockall) { #ifdef HAVE_MLOCKALL if (mlockall(MCL_CURRENT | MCL_FUTURE)) {