]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix format string
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 23 Jun 2020 13:31:29 +0000 (14:31 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 23 Jun 2020 13:31:29 +0000 (14:31 +0100)
src/libserver/worker_util.c

index a5e888920c3ba373a243f8f23ac9bf4f9b846f97..a8ee92ec905bea287cddac0e30b093f1132231b4 100644 (file)
@@ -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]);