| 245 | } |
| 246 | |
| 247 | static 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 | |
| 259 | static int update_anchor(struct mh_cache *mhc, uint8_t *fmap_hash) |
| 260 | { |
no test coverage detected