From 6a8b7585e2051baa911b665ed713835bc65515d6 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Tue, 13 Mar 2012 15:28:26 +0000 Subject: Fix multiple printf format problems All printf var-args style methods should be annotation with their format. All format strings must be const strings. * client/application.cpp, client/cmd_line_parser.cpp, client/hot_keys.cpp: Avoid non-const format * client/client_net_socket.cpp: Fix broken format specifier * client/red_peer.cpp: Fix missing format specifier * client/platform.h: Add SPICE_GNUC_PRINTF annotation to term_printf * client/utils.h: Add SPICE_GNUC_PRINTF annotation to string_printf * server/glz_encoder_config.h, server/red_worker.c: Add SPICE_GNUC_PRINTF annotation to warning callbacks Signed-off-by: Daniel P. Berrange --- client/client_net_socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/client_net_socket.cpp') diff --git a/client/client_net_socket.cpp b/client/client_net_socket.cpp index e9f1e770..9df68014 100644 --- a/client/client_net_socket.cpp +++ b/client/client_net_socket.cpp @@ -147,7 +147,7 @@ void ClientNetSocket::push_send(SendBuffer& buf) } if (_fin_pending || _close_pending) { - THROW("%s: unexpected send attempt for connection_id=% - shutdown send pending", + THROW("%s: unexpected send attempt for connection_id=%d - shutdown send pending", __FUNCTION__, _id); } -- cgit