From a890678229e7e72703ef3b27d8a98ccd9d7c4446 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Fri, 13 Jul 2012 13:10:01 -0700 Subject: [PATCH] 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 --- ovsdb/ovsdb-server.c | 2 ++ vswitchd/ovs-vswitchd.c | 2 ++ 2 files changed, 4 insertions(+) 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)) { -- 2.30.2