Fix wrong type in format string
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 17 Jun 2019 13:17:52 +0000 (15:17 +0200)
committerPetr Štetiar <ynezz@true.cz>
Mon, 17 Jun 2019 13:19:38 +0000 (15:19 +0200)
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>
urngd.c

diff --git a/urngd.c b/urngd.c
index f57a162aa039c7485735d919b8c97155b721880d..306420a397dcc67db67cb44709bd4926a46d8a45 100644 (file)
--- 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);