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

Function rte_log_dump

dpdk/lib/log/log.c:468–483  ·  view source on GitHub ↗

dump global level and registered log types */

Source from the content-addressed store, hash-verified

466
467/* dump global level and registered log types */
468void
469rte_log_dump(FILE *f)
470{
471 size_t i;
472
473 fprintf(f, "global log level is %s\n",
474 eal_log_level2str(rte_log_get_global_level()));
475
476 for (i = 0; i < rte_logs.dynamic_types_len; i++) {
477 if (rte_logs.dynamic_types[i].name == NULL)
478 continue;
479 fprintf(f, "id %zu: %s, level is %s\n",
480 i, rte_logs.dynamic_types[i].name,
481 eal_log_level2str(rte_logs.dynamic_types[i].loglevel));
482 }
483}
484
485/*
486 * Generates a log message The message will be sent in the stream

Callers 2

cmd_dump_parsedFunction · 0.85
cmd_dump_parsedFunction · 0.85

Calls 2

eal_log_level2strFunction · 0.85
rte_log_get_global_levelFunction · 0.85

Tested by 1

cmd_dump_parsedFunction · 0.68