commit f0aa0d1: [Minor] Fix format string

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Jun 23 13:35:07 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-06-23 14:31:29 +0100
URL: https://github.com/rspamd/rspamd/commit/f0aa0d1c6976acfad3c384a4d1e8f8ab3ca1629c (HEAD -> master)

[Minor] Fix format string

---
 src/libserver/worker_util.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libserver/worker_util.c b/src/libserver/worker_util.c
index a5e888920..a8ee92ec9 100644
--- a/src/libserver/worker_util.c
+++ b/src/libserver/worker_util.c
@@ -1107,11 +1107,11 @@ rspamd_handle_child_fork (struct rspamd_worker *wrk,
 	if (cf->bind_conf) {
 		msg_info_main ("starting %s process %P (%d); listen on: %s",
 				cf->worker->name,
-				getpid (), index, cf->bind_conf->bind_line);
+				getpid (), wrk->index, cf->bind_conf->bind_line);
 	}
 	else {
 		msg_info_main ("starting %s process %P (%d)", cf->worker->name,
-				getpid (), index);
+				getpid (), wrk->index);
 	}
 	/* Close parent part of socketpair */
 	close (wrk->control_pipe[0]);


More information about the Commits mailing list