Without this commit, starting a daemon with just '--syslog-target' causes a segmentation fault.
Signed-off-by: Gurucharan Shetty <[email protected]> --- include/openvswitch/vlog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/openvswitch/vlog.h b/include/openvswitch/vlog.h index 0b69259..9cc7326 100644 --- a/include/openvswitch/vlog.h +++ b/include/openvswitch/vlog.h @@ -238,7 +238,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}, \ {"log-facility", required_argument, NULL, OPT_LOG_FACILITY} #define VLOG_OPTION_HANDLERS \ -- 1.7.9.5 _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
