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

Function eal_log_usage

dpdk/lib/eal/common/eal_common_options.c:1341–1361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1339#endif
1340
1341static void
1342eal_log_usage(void)
1343{
1344 unsigned int level;
1345
1346 printf("Log type is a pattern matching items of this list"
1347 " (plugins may be missing):\n");
1348 rte_log_list_types(stdout, "\t");
1349 printf("\n");
1350 printf("Syntax using globbing pattern: ");
1351 printf("--"OPT_LOG_LEVEL" pattern:level\n");
1352 printf("Syntax using regular expression: ");
1353 printf("--"OPT_LOG_LEVEL" regexp,level\n");
1354 printf("Syntax for the global level: ");
1355 printf("--"OPT_LOG_LEVEL" level\n");
1356 printf("Logs are emitted if allowed by both global and specific levels.\n");
1357 printf("\n");
1358 printf("Log level can be a number or the first letters of its name:\n");
1359 for (level = 1; level <= RTE_LOG_MAX; level++)
1360 printf("\t%d %s\n", level, eal_log_level2str(level));
1361}
1362
1363static int
1364eal_parse_log_priority(const char *level)

Callers 1

eal_parse_log_levelFunction · 0.85

Calls 3

rte_log_list_typesFunction · 0.85
eal_log_level2strFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected