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

Function log_lookup

dpdk/lib/log/log.c:273–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273static int
274log_lookup(const char *name)
275{
276 size_t i;
277
278 for (i = 0; i < rte_logs.dynamic_types_len; i++) {
279 if (rte_logs.dynamic_types[i].name == NULL)
280 continue;
281 if (strcmp(name, rte_logs.dynamic_types[i].name) == 0)
282 return i;
283 }
284
285 return -1;
286}
287
288static int
289log_register(const char *name, uint32_t level)

Callers 1

log_registerFunction · 0.85

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected