From 7ae41b62cee4390be436812fbd39c21e7de3413b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Sat, 9 Jan 2010 10:52:23 +0000 Subject: [PATCH] Add '-s' option -> log debug messages to syslog --- src/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 71df781e..f4b500b6 100644 --- a/src/main.c +++ b/src/main.c @@ -234,7 +234,7 @@ main(int argc, char **argv) uint32_t adapter_mask = 0xffffffff; int crash = 0; - while((c = getopt(argc, argv, "Aa:fu:g:c:Chdr:j:")) != -1) { + while((c = getopt(argc, argv, "Aa:fu:g:c:Chdr:j:s")) != -1) { switch(c) { case 'a': adapter_mask = 0x0; @@ -274,6 +274,9 @@ main(int argc, char **argv) case 'd': log_debug_to_console = 1; break; + case 's': + log_debug_to_syslog = 1; + break; case 'C': createdefault = 1; break;