From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXaox-0001sr-26 for qemu-devel@nongnu.org; Fri, 26 Sep 2014 15:04:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXaor-0004He-Cq for qemu-devel@nongnu.org; Fri, 26 Sep 2014 15:04:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXaor-0004GH-66 for qemu-devel@nongnu.org; Fri, 26 Sep 2014 15:04:41 -0400 From: Luiz Capitulino Date: Fri, 26 Sep 2014 15:04:05 -0400 Message-Id: <1411758247-12161-8-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1411758247-12161-1-git-send-email-lcapitulino@redhat.com> References: <1411758247-12161-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PULL 7/9] qemu-socket: Polish errors for connect() and listen() failure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org Cc: qemu-devel@nongnu.org, anthony@codemonkey.ws From: Markus Armbruster connect() doesn't "connect to socket", it connects a socket to an address and, if it's of type SOCK_STREAM, initiates a connection. Scratch "to". listen() does "set socket to listening mode", but it sounds awkward. Change to "listen on socket". Signed-off-by: Markus Armbruster Reviewed-by: Gonglei Signed-off-by: Luiz Capitulino --- include/qapi/qmp/qerror.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/qapi/qmp/qerror.h b/include/qapi/qmp/qerror.h index 902d1a7..774e75d 100644 --- a/include/qapi/qmp/qerror.h +++ b/include/qapi/qmp/qerror.h @@ -155,10 +155,10 @@ void qerror_report_err(Error *err); ERROR_CLASS_GENERIC_ERROR, "this feature or command is not currently supported" #define QERR_SOCKET_CONNECT_FAILED \ - ERROR_CLASS_GENERIC_ERROR, "Failed to connect to socket" + ERROR_CLASS_GENERIC_ERROR, "Failed to connect socket" #define QERR_SOCKET_LISTEN_FAILED \ - ERROR_CLASS_GENERIC_ERROR, "Failed to set socket to listening mode" + ERROR_CLASS_GENERIC_ERROR, "Failed to listen on socket" #define QERR_SOCKET_BIND_FAILED \ ERROR_CLASS_GENERIC_ERROR, "Failed to bind socket" -- 1.9.3