[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 7/9] qemu-socket: Polish errors for connect() and lis
From: |
Luiz Capitulino |
Subject: |
[Qemu-devel] [PULL 7/9] qemu-socket: Polish errors for connect() and listen() failure |
Date: |
Fri, 26 Sep 2014 15:04:05 -0400 |
From: Markus Armbruster <address@hidden>
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 <address@hidden>
Reviewed-by: Gonglei <address@hidden>
Signed-off-by: Luiz Capitulino <address@hidden>
---
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
- [Qemu-devel] [PULL 0/9] QMP queue, Luiz Capitulino, 2014/09/26
- [Qemu-devel] [PULL 1/9] monitor: Reset HMP mon->rs in CHR_EVENT_OPEN, Luiz Capitulino, 2014/09/26
- [Qemu-devel] [PULL 3/9] qapi: add visit_start_union and visit_end_union, Luiz Capitulino, 2014/09/26
- [Qemu-devel] [PULL 2/9] virtio-balloon: fix integer overflow in memory stats feature, Luiz Capitulino, 2014/09/26
- [Qemu-devel] [PULL 5/9] tests: add QMP input visitor test for unions with no discriminator, Luiz Capitulino, 2014/09/26
- [Qemu-devel] [PULL 4/9] qapi: dealloc visitor, implement visit_start_union, Luiz Capitulino, 2014/09/26
- [Qemu-devel] [PULL 7/9] qemu-socket: Polish errors for connect() and listen() failure,
Luiz Capitulino <=
- [Qemu-devel] [PULL 6/9] qemu-iotests: Test missing "driver" key for blockdev-add, Luiz Capitulino, 2014/09/26
- [Qemu-devel] [PULL 8/9] qemu-socket: Eliminate silly QERR_ macros, Luiz Capitulino, 2014/09/26
- [Qemu-devel] [PULL 9/9] Add HMP command "info memory-devices", Luiz Capitulino, 2014/09/26
- Re: [Qemu-devel] [PULL 0/9] QMP queue, Peter Maydell, 2014/09/29