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

Function update_and_info

util/cbfstool/cbfstool.c:247–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247static void update_and_info(const char *name, void *dst, void *src, size_t size)
248{
249 if (!memcmp(dst, src, size))
250 return;
251 char *src_str = bintohex(src, size);
252 char *dst_str = bintohex(dst, size);
253 INFO("Updating %s from %s to %s\n", name, dst_str, src_str);
254 memcpy(dst, src, size);
255 free(src_str);
256 free(dst_str);
257}
258
259static int update_anchor(struct mh_cache *mhc, uint8_t *fmap_hash)
260{

Callers 1

update_anchorFunction · 0.85

Calls 4

bintohexFunction · 0.85
memcmpFunction · 0.50
memcpyFunction · 0.50
freeFunction · 0.50

Tested by

no test coverage detected