]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1960] The command line 'server' argument is printed.
authorMarcin Siodelski <marcin@isc.org>
Tue, 25 Sep 2012 20:13:38 +0000 (22:13 +0200)
committerMarcin Siodelski <marcin@isc.org>
Tue, 25 Sep 2012 20:13:38 +0000 (22:13 +0200)
tests/tools/perfdhcp/command_options.cc

index 97381311b42a114a67b42ca586959b74b468aeed..ef1adf6f8f98f451bcfc02b36c2a964ca24d7db2 100644 (file)
@@ -365,8 +365,6 @@ CommandOptions::initialize(int argc, char** argv) {
         }
     }
 
-    std::cout << "Running: " << stream.str() << std::endl;
-
     // If the IP version was not specified in the
     // command line, assume IPv4.
     if (ipversion_ == 0) {
@@ -394,6 +392,7 @@ CommandOptions::initialize(int argc, char** argv) {
     check(optind < argc -1, "extra arguments?");
     if (optind == argc - 1) {
         server_name_ = argv[optind];
+        stream << " " << server_name_;
         // Decode special cases
         if ((ipversion_ == 4) && (server_name_.compare("all") == 0)) {
             broadcast_ = true;
@@ -407,6 +406,8 @@ CommandOptions::initialize(int argc, char** argv) {
         }
     }
 
+    std::cout << "Running: " << stream.str() << std::endl;
+
     // Handle the local '-l' address/interface
     if (!localname_.empty()) {
         if (server_name_.empty()) {