if (0 > ret) {
ERROR("error injecting entropy: %s\n", strerror(errno));
} else {
- DEBUG(1, "injected %ub (%ub of entropy)\n", len, entropy_bytes);
+ DEBUG(1, "injected %zub (%zub of entropy)\n", len, entropy_bytes);
written = len;
}
ret = write_entropy(u, buf, sizeof(buf), ENTROPYBYTES);
if (sizeof(buf) != ret) {
- ERROR("injected %lub of entropy, less then %db expected\n",
+ ERROR("injected %zub of entropy, less then %zub expected\n",
ret, sizeof(buf));
} else {
ret = sizeof(buf);
}
memset_secure(buf, 0, sizeof(buf));
- DEBUG(2, DEV_RANDOM " fed with %lub of entropy\n", ret);
+ DEBUG(2, DEV_RANDOM " fed with %zub of entropy\n", ret);
return ret;
}