MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / srd_log_init

Function srd_log_init

libsigrokdecode4DSL/log.c:34–45  ·  view source on GitHub ↗

* Init a private log context */

Source from the content-addressed store, hash-verified

32 * Init a private log context
33 */
34SRD_PRIV void srd_log_init()
35{
36 if (!log_ctx && !srd_log){
37 log_ctx = xlog_new();
38 srd_log = xlog_create_writer(log_ctx, LOG_DOMAIN);
39 is_private_log = 1;
40
41 if (log_level_value != -1){
42 xlog_set_level(log_ctx, log_level_value);
43 }
44 }
45}
46
47/**
48 * Destroy the private log context

Callers 1

srd_initFunction · 0.85

Calls 3

xlog_newFunction · 0.85
xlog_create_writerFunction · 0.85
xlog_set_levelFunction · 0.85

Tested by

no test coverage detected