summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens2019-06-17 13:17:52 +0000
committerPetr Štetiar2019-06-17 13:19:38 +0000
commitc057e177ace7704a3d4e2e1272baaf2e2d21cbed (patch)
treea3196ee530cc726683839585d82735df137a670f
parent41e4163b2e7f4c1c1f51cdfa487d6052ff859cf2 (diff)
Fix wrong type in format string
GCC 9.1 complains about this wrong type used in the format string, fix this to make the compiler happy. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--urngd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/urngd.c b/urngd.c
index f57a162..306420a 100644
--- a/urngd.c
+++ b/urngd.c
@@ -114,7 +114,7 @@ static size_t gather_entropy(struct urngd *u)
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);