{"id":809710,"url":"http://patchwork.ozlabs.org/api/1.0/covers/809710/?format=json","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.0/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<cover.1504533674.git.maozy.fnst@cn.fujitsu.com>","date":"2017-09-04T14:35:36","name":"[v9,0/4] Improve error reporting","submitter":{"id":71231,"url":"http://patchwork.ozlabs.org/api/1.0/people/71231/?format=json","name":"Mao Zhongyi","email":"maozy.fnst@cn.fujitsu.com"},"series":[{"id":1398,"url":"http://patchwork.ozlabs.org/api/1.0/series/1398/?format=json","date":"2017-09-04T14:35:37","name":"Improve error reporting","version":9,"mbox":"http://patchwork.ozlabs.org/series/1398/mbox/"}],"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xmCFc4x6Xz9s7c\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue,  5 Sep 2017 00:40:52 +1000 (AEST)","from localhost ([::1]:47975 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dosYU-0007ou-Mz\n\tfor incoming@patchwork.ozlabs.org; Mon, 04 Sep 2017 10:40:50 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:33627)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <maozy.fnst@cn.fujitsu.com>) id 1dosVd-0005nZ-Ek\n\tfor qemu-devel@nongnu.org; Mon, 04 Sep 2017 10:37:58 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <maozy.fnst@cn.fujitsu.com>) id 1dosVY-000406-KG\n\tfor qemu-devel@nongnu.org; Mon, 04 Sep 2017 10:37:53 -0400","from mail.cn.fujitsu.com ([183.91.158.132]:47063\n\thelo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <maozy.fnst@cn.fujitsu.com>) id 1dosVY-0003yi-9t\n\tfor qemu-devel@nongnu.org; Mon, 04 Sep 2017 10:37:48 -0400","from localhost (HELO cn.fujitsu.com) ([10.167.33.5])\n\tby heian.cn.fujitsu.com with ESMTP; 04 Sep 2017 22:37:40 +0800","from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85])\n\tby cn.fujitsu.com (Postfix) with ESMTP id 277244725543;\n\tMon,  4 Sep 2017 22:37:39 +0800 (CST)","from maozy.g08.fujitsu.local (10.167.225.76) by\n\tG08CNEXCHPEKD03.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP\n\tServer (TLS) id 14.3.361.1; Mon, 4 Sep 2017 22:37:44 +0800"],"X-IronPort-AV":"E=Sophos;i=\"5.41,475,1498492800\"; d=\"scan'208\";a=\"25197759\"","From":"Mao Zhongyi <maozy.fnst@cn.fujitsu.com>","To":"<qemu-devel@nongnu.org>","Date":"Mon, 4 Sep 2017 22:35:36 +0800","Message-ID":"<cover.1504533674.git.maozy.fnst@cn.fujitsu.com>","X-Mailer":"git-send-email 2.9.4","MIME-Version":"1.0","Content-Type":"text/plain","X-Originating-IP":"[10.167.225.76]","X-yoursite-MailScanner-ID":"277244725543.ADB10","X-yoursite-MailScanner":"Found to be clean","X-yoursite-MailScanner-From":"maozy.fnst@cn.fujitsu.com","X-detected-operating-system":"by eggs.gnu.org: Genre and OS details not\n\trecognized.","X-Received-From":"183.91.158.132","Subject":"[Qemu-devel] [PATCH v9 0/4] Improve error reporting","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"jasowang@redhat.com, armbru@redhat.com, kraxel@redhat.com,\n\tpbonzini@redhat.com","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"},"content":"v9:\n* -rebase on upstream\n  -fix the commit message of patch04\n\nv8:\n* PATCH 02 & 04\n  -resetting the error message for the user to read.   [Markus Armbruster]\n  -fix the indentation and commit message.  [Markus Armbruster]\n  \nv7:\n* PATCH 01\n  -fix the error message.    [Daniel P. Berrange]\n  -adjust the indentation problem.    [Eric Blake]\n* PATCH 03\n  -print a generic message when gethostbyname() failed in parse_host_port(),\n   drop the misleading \": unkonwn host\" part.    [Markus Armbruster]\n\nv6:\n* PATCH 02\n  -rename the subject\n  -drop the \"qemu: error: \" prefix.\n  -correct inappropriate error information settings.\n* PATCH 03,04\n  -correct inappropriate error information settings.    [Markus Armbruster]\n\nv5:\n* PATCH 01 make the commit message more exact about the actual function.    [Markus Armbruster]\n* PATCH 02, 03, 04 still retains the original function, but specific\n           content and order of each patch has been adjusted substantially, \n           so that ensure each patch is a completed fix.    [Markus Armbruster]\n\nv4: \n* PATCH 01 is redoing previous patch 1, replace the fprintf() with error_report()\n\t\t     in the 'default' case of net_socket_fd_init() [Markus Armbruster]\n\nv3:\n* PATCH 01 is suggested by Markus and Daniel that removes the dubious 'default' case\n           in the net_socket_fd_init(). Jason agreed.\n* PATCH 02 is redoing previous patch 4.\n* PATCH 04 is redoing previous patch 2, improves sort of error messages. \n\nv2:\n* PATCH 02 reworking of patch 2 following Markus's suggestion that convert error_report()\n           in the function called by net_socket_*_init() to Error. Also add many error \n           handling information.\n* PATCH 03 net_socket_mcast_create(), net_socket_fd_init_dgram() and net_socket_fd_init() \n           use the function such as fprintf, perror to report an error message. Convert it \n           to Error.\n* PATCH 04 parse_host_port() may fail without reporting an error. Now, fix it to set an\n           error when it fails.\n\nCc: jasowang@redhat.com\nCc: armbru@redhat.com\nCc: berrange@redhat.com\nCc: kraxel@redhat.com\nCc: pbonzini@redhat.com\nCc: eblake@redhat.com\n\nMao Zhongyi (4):\n  net/socket: Don't treat odd socket type as SOCK_STREAM\n  net/socket: Convert several helper functions to Error\n  net/net: Convert parse_host_port() to Error\n  net/socket: Improve -net socket error reporting\n\n include/qemu/sockets.h |   3 +-\n net/net.c              |  22 +++++--\n net/socket.c           | 156 ++++++++++++++++++++++++++++---------------------\n 3 files changed, 108 insertions(+), 73 deletions(-)"}