diff options
author | Gurucharan Shetty <gshetty@nicira.com> | 2015-01-26 08:36:23 -0800 |
---|---|---|
committer | Gurucharan Shetty <gshetty@nicira.com> | 2015-01-26 13:20:42 -0800 |
commit | 47ff8abb5f8900935abc8de4fabb62763d14ff3c (patch) | |
tree | 7816840816b5e7e10333fd2b77c39d001c406639 | |
parent | 2dd88e5d65c5d36d12311dae3127c0d9a24a9398 (diff) | |
download | openvswitch-47ff8abb5f8900935abc8de4fabb62763d14ff3c.tar.gz |
vlog: Logging option '--syslog-target' needs one argument.
Without this commit, starting a daemon with just '--syslog-target'
causes a segmentation fault.
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
-rw-r--r-- | include/openvswitch/vlog.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/openvswitch/vlog.h b/include/openvswitch/vlog.h index b1c7aa7fa..680fba428 100644 --- a/include/openvswitch/vlog.h +++ b/include/openvswitch/vlog.h @@ -234,7 +234,7 @@ void vlog_rate_limit(const struct vlog_module *, enum vlog_level, #define VLOG_LONG_OPTIONS \ {"verbose", optional_argument, NULL, 'v'}, \ {"log-file", optional_argument, NULL, OPT_LOG_FILE}, \ - {"syslog-target", optional_argument, NULL, OPT_SYSLOG_TARGET} + {"syslog-target", required_argument, NULL, OPT_SYSLOG_TARGET} #define VLOG_OPTION_HANDLERS \ case 'v': \ |