X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=utilities%2Fovs-appctl.c;h=ff6163cd856e0b229446c1186ef351eb20f21729;hb=c6f4d2988f8b8fb94382299c0398d512a75bb8c2;hp=3d32cbd61b4fdefd34480e332a317d4cade63132;hpb=66fa2c884fe9aee48217a76189a148bf215e0f5d;p=cascardo%2Fovs.git diff --git a/utilities/ovs-appctl.c b/utilities/ovs-appctl.c index 3d32cbd61..ff6163cd8 100644 --- a/utilities/ovs-appctl.c +++ b/utilities/ovs-appctl.c @@ -31,7 +31,7 @@ #include "timeval.h" #include "unixctl.h" #include "util.h" -#include "vlog.h" +#include "openvswitch/vlog.h" static void usage(void); static const char *parse_command_line(int argc, char *argv[]); @@ -89,13 +89,14 @@ 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\ + list-commands List commands supported by the target\n\ version Print version of the target\n\ vlog/list List current logging levels\n\ + vlog/list-pattern List logging patterns for each destination.\n\ vlog/set [SPEC]\n\ Set log levels as detailed in SPEC, which may include:\n\ A valid module name (all modules, by default)\n\ - 'syslog', 'console', 'file' (all facilities, by default))\n\ + 'syslog', 'console', 'file' (all destinations, by default))\n\ 'off', 'emer', 'err', 'warn', 'info', or 'dbg' ('dbg', bydefault)\n\ vlog/reopen Make the program reopen its log file\n\ Other options:\n\ @@ -123,7 +124,7 @@ parse_command_line(int argc, char *argv[]) VLOG_LONG_OPTIONS, {NULL, 0, NULL, 0}, }; - char *short_options_ = long_options_to_short_options(long_options); + char *short_options_ = ovs_cmdl_long_options_to_short_options(long_options); char *short_options = xasprintf("+%s", short_options_); const char *target; int e_options; @@ -160,7 +161,7 @@ parse_command_line(int argc, char *argv[]) break; case 'o': - print_options(long_options); + ovs_cmdl_print_options(long_options); exit(EXIT_SUCCESS); case 'T':