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

Function rte_vlog

dpdk/lib/log/log.c:489–507  ·  view source on GitHub ↗

* Generates a log message The message will be sent in the stream * defined by the previous call to rte_openlog_stream(). */

Source from the content-addressed store, hash-verified

487 * defined by the previous call to rte_openlog_stream().
488 */
489int
490rte_vlog(uint32_t level, uint32_t logtype, const char *format, va_list ap)
491{
492 FILE *f = rte_log_get_stream();
493 int ret;
494
495 if (logtype >= rte_logs.dynamic_types_len)
496 return -1;
497 if (!rte_log_can_log(logtype, level))
498 return 0;
499
500 /* save loglevel and logtype in a global per-lcore variable */
501 RTE_PER_LCORE(log_cur_msg).loglevel = level;
502 RTE_PER_LCORE(log_cur_msg).logtype = logtype;
503
504 ret = vfprintf(f, format, ap);
505 fflush(f);
506 return ret;
507}
508
509/*
510 * Generates a log message The message will be sent in the stream

Callers 5

ff_logFunction · 0.85
ff_vlogFunction · 0.85
rte_logFunction · 0.85
__rte_panicFunction · 0.85
rte_exitFunction · 0.85

Calls 2

rte_log_get_streamFunction · 0.85
rte_log_can_logFunction · 0.85

Tested by

no test coverage detected