openwrt/package/system/urngd/patches/001-fix-compile.patch
Hauke Mehrtens 670fd46b3f urngd: Fix more wrong type in format string
Also the other type is worng and causes compile problems on ARM64
platforms.

Fixes: 9b53201d9c53 ("urngd: Fix wrong type in format string")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 1ae1276eab1903d194c1a0f8037e7f44304568b1)
2019-09-04 13:13:16 +02:00

12 lines
365 B
Diff

--- 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 %zub expected\n",
ret, sizeof(buf));
} else {
ret = sizeof(buf);