X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=utilities%2Fovs-appctl.c;h=d3c701b480206d283546724c31b3383b5b1b39e2;hb=09ded0ad489630236210a02f2d315816e558d701;hp=88ecfe324ac4934dd8602825ae3c621d1571453b;hpb=b328b55b4a34b2bb4ea22d5a58ae10f3779cb761;p=openvswitch diff --git a/utilities/ovs-appctl.c b/utilities/ovs-appctl.c index 88ecfe32..d3c701b4 100644 --- a/utilities/ovs-appctl.c +++ b/utilities/ovs-appctl.c @@ -81,22 +81,24 @@ main(int argc, char *argv[]) static void usage(void) { - printf("%s, for querying and controlling Open vSwitch daemon\n" - "usage: %s [TARGET] COMMAND [ARG...]\n" - "Targets:\n" - " -t, --target=TARGET pidfile or socket to contact\n" - "Common commands:\n" - " help List commands supported by the target\n" - " vlog/list List current logging levels\n" - " vlog/set MODULE[:FACILITY[:LEVEL]]\n" - " Set MODULE and FACILITY log level to LEVEL\n" - " MODULE may be any valid module name or 'ANY'\n" - " FACILITY may be 'syslog', 'console', 'file', or 'ANY' (default)\n" - " LEVEL may be 'emer', 'err', 'warn', 'info', or 'dbg' (default)\n" - " vlog/reopen Make the program reopen its log file\n" - "Other options:\n" - " -h, --help Print this helpful information\n" - " -V, --version Display version information\n", + printf("\ +%s, for querying and controlling Open vSwitch daemon\n\ +usage: %s [TARGET] COMMAND [ARG...]\n\ +Targets:\n\ + -t, --target=TARGET pidfile or socket to contact\n\ +Common commands:\n\ + help List commands supported by the target\n\ + version Print version of the target\n\ + vlog/list List current logging levels\n\ + vlog/set MODULE[:FACILITY[:LEVEL]]\n\ + Set MODULE and FACILITY log level to LEVEL\n\ + MODULE may be any valid module name or 'ANY'\n\ + FACILITY may be 'syslog', 'console', 'file', or 'ANY' (default)\n\ + LEVEL may be 'off', 'emer', 'err', 'warn', 'info', or 'dbg' (default)\n\ + vlog/reopen Make the program reopen its log file\n\ +Other options:\n\ + -h, --help Print this helpful information\n\ + -V, --version Display ovs-appctl version information\n", program_name, program_name); exit(EXIT_SUCCESS); } @@ -146,7 +148,7 @@ parse_command_line(int argc, char *argv[]) break; case 'V': - OVS_PRINT_VERSION(0, 0); + ovs_print_version(0, 0); exit(EXIT_SUCCESS); case '?':