MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cmd_set_log_parsed

Function cmd_set_log_parsed

dpdk/app/test-pmd/cmdline.c:3784–3800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3782};
3783
3784static void
3785cmd_set_log_parsed(void *parsed_result,
3786 __rte_unused struct cmdline *cl,
3787 __rte_unused void *data)
3788{
3789 struct cmd_set_log_result *res;
3790 int ret;
3791
3792 res = parsed_result;
3793 if (!strcmp(res->type, "global"))
3794 rte_log_set_global_level(res->level);
3795 else {
3796 ret = rte_log_set_level_regexp(res->type, res->level);
3797 if (ret < 0)
3798 fprintf(stderr, "Unable to set log level\n");
3799 }
3800}
3801
3802static cmdline_parse_token_string_t cmd_set_log_set =
3803 TOKEN_STRING_INITIALIZER(struct cmd_set_log_result, set, "set");

Callers

nothing calls this directly

Calls 3

strcmpFunction · 0.85
rte_log_set_global_levelFunction · 0.85
rte_log_set_level_regexpFunction · 0.85

Tested by

no test coverage detected