Add '-s' option -> log debug messages to syslog

This commit is contained in:
Andreas Öman 2010-01-09 10:52:23 +00:00
parent d404f984d4
commit 7ae41b62ce

View file

@ -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;