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

Function kv_pair_fmt

util/cbfstool/flashmap/kv_pair.c:86–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86struct kv_pair *kv_pair_fmt(struct kv_pair *kv_list,
87 const char *kv_key, const char *format, ...)
88{
89 char kv_value[KV_PAIR_MAX_VALUE_LEN];
90 va_list vptr;
91
92 memset(kv_value, 0, sizeof(kv_value));
93
94 va_start(vptr, format);
95 vsnprintf(kv_value, sizeof(kv_value), format, vptr);
96 va_end(vptr);
97
98 return kv_pair_add(kv_list, kv_key, kv_value);
99}
100
101void kv_pair_free(struct kv_pair *kv_list)
102{

Callers 1

fmap_printFunction · 0.85

Calls 3

kv_pair_addFunction · 0.85
memsetFunction · 0.50
vsnprintfFunction · 0.50

Tested by

no test coverage detected