Fix arguments to printf in usage message.
authorBen Pfaff <blp@nicira.com>
Wed, 19 Mar 2008 16:00:31 +0000 (09:00 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 19 Mar 2008 16:00:31 +0000 (09:00 -0700)
controller/controller.c
secchan/secchan.c

index b617c9e66bb8879c5e683ada224179fb357d6072..43c0b3f8a8167ec5b6a6ca92fbec48538eec701a 100644 (file)
@@ -696,7 +696,7 @@ usage(void)
            "usage: %s [OPTIONS] VCONN\n"
            "where VCONN is one of the following:\n"
            "  ptcp:[PORT]             listen to TCP PORT (default: %d)\n",
-           program_name, program_name);
+           program_name, program_name, OFP_TCP_PORT);
 #ifdef HAVE_NETLINK
     printf("  nl:DP_IDX               via netlink to local datapath DP_IDX\n");
 #endif
@@ -713,7 +713,6 @@ usage(void)
            "  -n, --noflow            pass traffic, but don't add flows\n"
            "  -v, --verbose           set maximum verbosity level\n"
            "  -h, --help              display this help message\n"
-           "  -V, --version           display version information\n",
-           OFP_TCP_PORT);
+           "  -V, --version           display version information\n");
     exit(EXIT_SUCCESS);
 }
index 936b606e1cc9f8c273a5dd82a0002be731341d7f..f50b3ac52a586b60f03d35fdddf49e5b35f290ab 100644 (file)
@@ -288,7 +288,7 @@ usage(void)
            "\nRelays OpenFlow message between LOCAL and REMOTE datapaths.\n"
            "LOCAL and REMOTE must each be one of the following:\n"
            "  tcp:HOST[:PORT]         PORT (default: %d) on remote TCP HOST\n",
-           program_name, program_name);
+           program_name, program_name, OFP_TCP_PORT);
 #ifdef HAVE_NETLINK
     printf("  nl:DP_IDX               local datapath DP_IDX\n");
 #endif
@@ -305,7 +305,6 @@ usage(void)
            "\nOther options:\n"
            "  -v, --verbose           set maximum verbosity level\n"
            "  -h, --help              display this help message\n"
-           "  -V, --version           display version information\n",
-           OFP_TCP_PORT);
+           "  -V, --version           display version information\n");
     exit(EXIT_SUCCESS);
 }