commit 8a8b08f1e6382f2cc4e36210bfa2c318557cdf58
parent 429159ee3c6873d99fcd2a2bb6b6633f88a06f78
Author: Joris Vink <joris@coders.se>
Date: Mon, 11 Feb 2019 14:00:28 +0100
use %u when logging worker_rlimit_nofiles
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/worker.c b/src/worker.c
@@ -280,7 +280,7 @@ kore_worker_privdrop(const char *runas, const char *root)
rl.rlim_cur = worker_rlimit_nofiles;
rl.rlim_max = worker_rlimit_nofiles;
if (setrlimit(RLIMIT_NOFILE, &rl) == -1) {
- kore_log(LOG_ERR, "setrlimit(RLIMIT_NOFILE, %d): %s",
+ kore_log(LOG_ERR, "setrlimit(RLIMIT_NOFILE, %u): %s",
worker_rlimit_nofiles, errno_s);
}