diff --git a/src/haproxy.c b/src/haproxy.c index 3f8e71ee6..3924df1d5 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -936,8 +936,8 @@ static void sig_pause(struct sig_handler *sh) { if (protocol_pause_all() & ERR_FATAL) { const char *msg = "Some proxies refused to pause, performing soft stop now.\n"; - ha_warning(msg); - send_log(NULL, LOG_WARNING, msg); + ha_warning("%s", msg); + send_log(NULL, LOG_WARNING, "%s", msg); soft_stop(); } pool_gc(NULL); @@ -950,8 +950,8 @@ static void sig_listen(struct sig_handler *sh) { if (protocol_resume_all() & ERR_FATAL) { const char *msg = "Some proxies refused to resume, probably due to a conflict on a listening port. You may want to try again after the conflicting application is stopped, otherwise a restart might be needed to resume safe operations.\n"; - ha_warning(msg); - send_log(NULL, LOG_WARNING, msg); + ha_warning("%s", msg); + send_log(NULL, LOG_WARNING, "%s", msg); } }