MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / eLIBs_printf

Function eLIBs_printf

bsp/allwinner/libraries/libos/src/os.c:408–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408int eLIBs_printf(const char *fmt, ...)
409{
410 va_list args;
411 rt_size_t length;
412 static char rt_log_buf[RT_CONSOLEBUF_SIZE];
413
414 va_start(args, fmt);
415
416 length = rt_vsnprintf(rt_log_buf, sizeof(rt_log_buf) - 1, fmt, args);
417 if (length > RT_CONSOLEBUF_SIZE - 1)
418 length = RT_CONSOLEBUF_SIZE - 1;
419 va_end(args);
420
421 rt_kputs(rt_log_buf);
422}

Callers

nothing calls this directly

Calls 2

rt_kputsFunction · 0.85
rt_vsnprintfFunction · 0.50

Tested by

no test coverage detected