1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

Parse text log level

closes #42
This commit is contained in:
albfan 2015-08-22 11:07:13 +02:00
parent 73adee82bf
commit 117ed2071b
8 changed files with 36 additions and 34 deletions

View file

@ -502,7 +502,7 @@ static int parse_argv(int argc, char *argv[])
puts(PACKAGE_STRING);
return 0;
case ARG_LOG_LEVEL:
log_max_sev = atoi(optarg);
log_max_sev = log_parse_arg(optarg);
break;
case ARG_LOG_TIME:
log_init_time();
@ -512,7 +512,7 @@ static int parse_argv(int argc, char *argv[])
arg_wpa_bindir = optarg;
break;
case ARG_WPA_LOGLEVEL:
arg_wpa_loglevel = atoi(optarg);
arg_wpa_loglevel = log_parse_arg(optarg);
break;
case '?':
return -EINVAL;