From 47ff8abb5f8900935abc8de4fabb62763d14ff3c Mon Sep 17 00:00:00 2001 From: Gurucharan Shetty Date: Mon, 26 Jan 2015 08:36:23 -0800 Subject: [PATCH] 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 Acked-by: Ben Pfaff --- 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 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': \ -- 2.20.1