From: Ben Pfaff Date: Wed, 19 Mar 2008 16:00:31 +0000 (-0700) Subject: Fix arguments to printf in usage message. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=238b46a726a6a049b33b0c38fbfb69d7efd598eb;p=openvswitch Fix arguments to printf in usage message. --- diff --git a/controller/controller.c b/controller/controller.c index b617c9e6..43c0b3f8 100644 --- a/controller/controller.c +++ b/controller/controller.c @@ -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); } diff --git a/secchan/secchan.c b/secchan/secchan.c index 936b606e..f50b3ac5 100644 --- a/secchan/secchan.c +++ b/secchan/secchan.c @@ -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); }