userspace: Log version on startup.
authorEthan Jackson <ethan@nicira.com>
Fri, 13 Jul 2012 20:10:01 +0000 (13:10 -0700)
committerEthan Jackson <ethan@nicira.com>
Tue, 17 Jul 2012 05:28:07 +0000 (22:28 -0700)
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 <ethan@nicira.com>
ovsdb/ovsdb-server.c
vswitchd/ovs-vswitchd.c

index 7f53e177fc20de85380cee9d6888945fb0cc2080..8412cbb91655013769c9b46085a215529dc12ed3 100644 (file)
@@ -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));
index 6062a40a63261c44b977ceeca355e1e6920c2b05..3b6517884498b3591a419b6baab609d1c4d06b45 100644 (file)
@@ -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)) {