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

Function srd_log_set_context

libsigrokdecode4DSL/log.c:64–74  ·  view source on GitHub ↗

* Use a shared context, and drop the private log context */

Source from the content-addressed store, hash-verified

62 * Use a shared context, and drop the private log context
63 */
64SRD_API void srd_log_set_context(xlog_context *ctx)
65{
66 if (ctx){
67 srd_log_uninit();
68 srd_log = xlog_create_writer(ctx, LOG_DOMAIN);
69
70 if (log_level_value != -1){
71 xlog_set_level(ctx, log_level_value);
72 }
73 }
74}
75
76/**
77 * Set the private log context level

Callers 1

InitMethod · 0.85

Calls 3

srd_log_uninitFunction · 0.85
xlog_create_writerFunction · 0.85
xlog_set_levelFunction · 0.85

Tested by

no test coverage detected