diff options
author | sam <sam@FreeBSD.org> | 2008-03-25 21:47:03 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2008-03-25 21:47:03 +0000 |
commit | 268354d5164d4b1e0a9a1abef4452b9e61700182 (patch) | |
tree | e99724b45f0953cd50da75bfd56a4647eccff784 /contrib/wpa_supplicant/main.c | |
parent | 5e698c9f5e3fbe1e9ba5270ea8ca2057572a101b (diff) | |
download | FreeBSD-src-268354d5164d4b1e0a9a1abef4452b9e61700182.zip FreeBSD-src-268354d5164d4b1e0a9a1abef4452b9e61700182.tar.gz |
fix botched merge of syslog support to the vendor branch; these files
were off the branch so we need to pull the changes back up
Diffstat (limited to 'contrib/wpa_supplicant/main.c')
-rw-r--r-- | contrib/wpa_supplicant/main.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/contrib/wpa_supplicant/main.c b/contrib/wpa_supplicant/main.c index 8ce4ef2..aaef822 100644 --- a/contrib/wpa_supplicant/main.c +++ b/contrib/wpa_supplicant/main.c @@ -41,7 +41,7 @@ static void usage(void) int i; printf("%s\n\n%s\n" "usage:\n" - " wpa_supplicant [-BddhKLqqtuvwW] [-P<pid file>] " + " wpa_supplicant [-BddhKLqqstuvwW] [-P<pid file>] " "[-g<global ctrl>] \\\n" " -i<ifname> -c<config file> [-C<ctrl>] [-D<driver>] " "[-p<driver_param>] \\\n" @@ -79,6 +79,9 @@ static void usage(void) printf(" -p = driver parameters\n" " -P = PID file\n" " -q = decrease debugging verbosity (-qq even less)\n" +#ifdef CONFIG_DEBUG_SYSLOG + " -s = log output to syslog instead of stdout\n" +#endif /* CONFIG_DEBUG_SYSLOG */ #ifdef CONFIG_CTRL_IFACE_DBUS " -u = enable DBus control interface\n" #endif /* CONFIG_CTRL_IFACE_DBUS */ @@ -149,7 +152,7 @@ int main(int argc, char *argv[]) wpa_supplicant_fd_workaround(); for (;;) { - c = getopt(argc, argv, "b:Bc:C:D:df:g:hi:KLNp:P:qtuvwW"); + c = getopt(argc, argv, "b:Bc:C:D:df:g:hi:KLNp:P:qstuvwW"); if (c < 0) break; switch (c) { @@ -210,6 +213,11 @@ int main(int argc, char *argv[]) case 'q': params.wpa_debug_level++; break; +#ifdef CONFIG_DEBUG_SYSLOG + case 's': + params.wpa_debug_syslog++; + break; +#endif /* CONFIG_DEBUG_SYSLOG */ case 't': params.wpa_debug_timestamp++; break; |