MCPcopy Create free account
hub / github.com/coreboot/coreboot / vsnprintf

Function vsnprintf

src/console/vsprintf.c:21–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21int vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
22{
23 int i;
24 struct vsnprintf_context ctx;
25
26 ctx.str_buf = buf;
27 ctx.buf_limit = size ? size - 1 : 0;
28 i = vtxprintf(str_tx_byte, fmt, args, &ctx);
29 if (size)
30 *ctx.str_buf = '\0';
31
32 return i;
33}
34
35int snprintf(char *buf, size_t size, const char *fmt, ...)
36{

Callers 15

snprintfFunction · 0.70
lookup_env_parameterFunction · 0.50
lookup_env_parameter_ullFunction · 0.50
bdk_config_get_intFunction · 0.50
bdk_config_set_intFunction · 0.50
bdk_config_get_strFunction · 0.50
bdk_device_renameFunction · 0.50
vprintkFunction · 0.50
dieFunction · 0.50
item_makeFunction · 0.50
item_add_strFunction · 0.50
conf_messageFunction · 0.50

Calls 1

vtxprintfFunction · 0.85

Tested by

no test coverage detected