urngd: Fix wrong type in format string
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 16 Jun 2019 14:38:56 +0000 (16:38 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 16 Jun 2019 14:40:08 +0000 (16:40 +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>
package/system/urngd/patches/001-fix-compile.patch [new file with mode: 0644]

diff --git a/package/system/urngd/patches/001-fix-compile.patch b/package/system/urngd/patches/001-fix-compile.patch
new file mode 100644 (file)
index 0000000..c9ab685
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/urngd.c
++++ b/urngd.c
+@@ -114,7 +114,7 @@ static size_t gather_entropy(struct urng
+       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 %db expected\n",
+                     ret, sizeof(buf));
+       } else {
+               ret = sizeof(buf);