aboutsummaryrefslogtreecommitdiff
path: root/qerror.c
diff options
context:
space:
mode:
authorAmos Kong <akong@redhat.com>2012-05-11 00:28:08 +0800
committerAnthony Liguori <aliguori@us.ibm.com>2012-05-10 12:37:57 -0500
commitaed3d11df6d14ce63ac754601e4df965c608f6bd (patch)
treefd304d39b50a4997aa490a27029ac9077019573f /qerror.c
parente2d87bff12a5195f5b2556baabe2598e14fbed19 (diff)
downloadqemu-aed3d11df6d14ce63ac754601e4df965c608f6bd.zip
qemu-aed3d11df6d14ce63ac754601e4df965c608f6bd.tar.gz
qemu-aed3d11df6d14ce63ac754601e4df965c608f6bd.tar.bz2
qerror: add five qerror strings
Add five new qerror strings, they are about listen/connect socket: QERR_SOCKET_CONNECT_IN_PROGRESS QERR_SOCKET_CONNECT_FAILED QERR_SOCKET_LISTEN_FAILED QERR_SOCKET_BIND_FAILED QERR_SOCKET_CREATE_FAILED Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Amos Kong <akong@redhat.com> Reviewed-by: Orit Wasserman <owasserm@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qerror.c')
-rw-r--r--qerror.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/qerror.c b/qerror.c
index 96fbe71..5092fe7 100644
--- a/qerror.c
+++ b/qerror.c
@@ -304,6 +304,26 @@ static const QErrorStringTable qerror_table[] = {
.error_fmt = QERR_VNC_SERVER_FAILED,
.desc = "Could not start VNC server on %(target)",
},
+ {
+ .error_fmt = QERR_SOCKET_CONNECT_IN_PROGRESS,
+ .desc = "Connection can not be completed immediately",
+ },
+ {
+ .error_fmt = QERR_SOCKET_CONNECT_FAILED,
+ .desc = "Failed to connect to socket",
+ },
+ {
+ .error_fmt = QERR_SOCKET_LISTEN_FAILED,
+ .desc = "Failed to set socket to listening mode",
+ },
+ {
+ .error_fmt = QERR_SOCKET_BIND_FAILED,
+ .desc = "Failed to bind socket",
+ },
+ {
+ .error_fmt = QERR_SOCKET_CREATE_FAILED,
+ .desc = "Failed to create socket",
+ },
{}
};