Lines Matching refs:gs
95 struct getopt_state gs; in do_log_filter_list() local
99 getopt_init_state(&gs); in do_log_filter_list()
100 while ((opt = getopt(&gs, argc, argv, "d:")) > 0) { in do_log_filter_list()
103 drv_name = gs.arg; in do_log_filter_list()
110 if (gs.index != argc) in do_log_filter_list()
161 struct getopt_state gs; in do_log_filter_add() local
163 getopt_init_state(&gs); in do_log_filter_add()
164 while ((opt = getopt(&gs, argc, argv, "Ac:d:Df:l:L:p")) > 0) { in do_log_filter_add()
184 cat = log_get_cat_by_name(gs.arg); in do_log_filter_add()
186 printf("Unknown category \"%s\"\n", gs.arg); in do_log_filter_add()
194 drv_name = gs.arg; in do_log_filter_add()
201 file_list = gs.arg; in do_log_filter_add()
209 level = parse_log_level(gs.arg); \ in do_log_filter_add()
228 if (gs.index != argc) in do_log_filter_add()
251 struct getopt_state gs; in do_log_filter_remove() local
253 getopt_init_state(&gs); in do_log_filter_remove()
254 while ((opt = getopt(&gs, argc, argv, "ad:")) > 0) { in do_log_filter_remove()
260 drv_name = gs.arg; in do_log_filter_remove()
271 if (gs.index != argc) in do_log_filter_remove()
287 if (gs.index + 1 != argc) in do_log_filter_remove()
290 if (strict_strtoul(argv[gs.index], 10, &filter_num)) { in do_log_filter_remove()
291 printf("Invalid filter number \"%s\"\n", argv[gs.index]); in do_log_filter_remove()