]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix format string
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 20 Nov 2022 20:54:01 +0000 (20:54 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 20 Nov 2022 20:54:01 +0000 (20:54 +0000)
src/libserver/rspamd_control.c

index 21a8c495e8ede5058de7a84aa4ec035f8ff6125e..e1c39ccaac6ec373b97bcdbf01c6ce50a5344276 100644 (file)
@@ -929,7 +929,7 @@ rspamd_srv_handler (EV_P_ ev_io *w, int revents)
                }
                else if (r != sizeof (cmd)) {
                        msg_err ("cannot read from worker's srv pipe incomplete command: %d != %d; command = %s",
-                                       (gint)r, sizeof(cmd), rspamd_srv_command_to_string(cmd.type));
+                                       (gint)r, (gint)sizeof(cmd), rspamd_srv_command_to_string(cmd.type));
                }
                else {
                        rdata = g_malloc0 (sizeof (*rdata));