qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v5 0/4] Improve error reporting


From: Mao Zhongyi
Subject: [Qemu-devel] [PATCH v5 0/4] Improve error reporting
Date: Tue, 27 Jun 2017 11:24:38 +0800

v5:
* PATCH 01 make the commit message more exact about the actual function.    
[Markus Armbruster]
* PATCH 02, 03, 04 still retains the original function, but specific
           content and order of each patch has been adjusted substantially, 
           so that ensure each patch is a completed fix.    [Markus Armbruster]

v4: 
* PATCH 01 is redoing previous patch 1, replace the fprintf() with 
error_report()
                     in the 'default' case of net_socket_fd_init() [Markus 
Armbruster]

v3:
* PATCH 01 is suggested by Markus and Daniel that removes the dubious 'default' 
case
           in the net_socket_fd_init(). Jason agreed.
* PATCH 02 is redoing previous patch 4.
* PATCH 04 is redoing previous patch 2, improves sort of error messages. 

v2:
* PATCH 02 reworking of patch 2 following Markus's suggestion that convert 
error_report()
           in the function called by net_socket_*_init() to Error. Also add 
many error 
           handling information.
* PATCH 03 net_socket_mcast_create(), net_socket_fd_init_dgram() and 
net_socket_fd_init() 
           use the function such as fprintf, perror to report an error message. 
Convert it 
           to Error.
* PATCH 04 parse_host_port() may fail without reporting an error. Now, fix it 
to set an
           error when it fails.

Cc: address@hidden
Cc: address@hidden
Cc: address@hidden
Cc: address@hidden
Cc: address@hidden

Mao Zhongyi (4):
  net/socket: Don't treat odd socket type as SOCK_STREAM
  net/socket: Convert error message to Error
  net/net: Convert parse_host_port() to Error
  net/socket: Improve -net socket error reporting

 include/qemu/sockets.h |   3 +-
 net/net.c              |  22 ++++++--
 net/socket.c           | 150 +++++++++++++++++++++++++++++--------------------
 3 files changed, 108 insertions(+), 67 deletions(-)

-- 
2.9.4






reply via email to

[Prev in Thread] Current Thread [Next in Thread]