Lines Matching refs:fwk_log_ctx
35 } fwk_log_ctx = { 0 }; variable
44 fwk_ring_init(&fwk_log_ctx.ring, storage, sizeof(storage)); in fwk_log_stream_init()
242 bool dropped = !fwk_log_buffer(&fwk_log_ctx.ring, buffer); in fwk_log_printf()
251 fwk_log_ctx.dropped++; in fwk_log_printf()
256 fwk_log_ctx.dropped++; in fwk_log_printf()
274 if (fwk_log_ctx.remaining == 0) { in fwk_log_unbuffer()
281 &fwk_log_ctx.ring, in fwk_log_unbuffer()
282 (char *)&fwk_log_ctx.remaining, in fwk_log_unbuffer()
283 sizeof(fwk_log_ctx.remaining)); in fwk_log_unbuffer()
292 if (fwk_log_ctx.dropped > 0) { in fwk_log_unbuffer()
294 "[FWK] ... and %u more messages...", fwk_log_ctx.dropped); in fwk_log_unbuffer()
296 fwk_log_ctx.dropped = 0; in fwk_log_unbuffer()
312 fetched = fwk_ring_pop(&fwk_log_ctx.ring, &ch, sizeof(ch)); in fwk_log_unbuffer()
317 fwk_log_ctx.remaining--; in fwk_log_unbuffer()