From patchwork Fri Jun 28 18:17:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 255639 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 9500F2C0099 for ; Sat, 29 Jun 2013 05:08:58 +1000 (EST) Received: from localhost ([::1]:60690 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsdI5-0004vA-RL for incoming@patchwork.ozlabs.org; Fri, 28 Jun 2013 14:21:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsdHQ-0004lN-Gc for qemu-devel@nongnu.org; Fri, 28 Jun 2013 14:20:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsdHO-0006H7-Kf for qemu-devel@nongnu.org; Fri, 28 Jun 2013 14:20:20 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:41151) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsdHO-0006GY-3z; Fri, 28 Jun 2013 14:20:18 -0400 Received: from gandalf.tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by isrv.corpit.ru (Postfix) with ESMTP id 8E93E42BD1; Fri, 28 Jun 2013 22:20:17 +0400 (MSK) Received: by gandalf.tls.msk.ru (Postfix, from userid 1000) id 82D5A572; Fri, 28 Jun 2013 22:17:48 +0400 (MSK) From: Michael Tokarev To: Anthony Liguori Date: Fri, 28 Jun 2013 22:17:43 +0400 Message-Id: <1372443465-22384-13-git-send-email-mjt@msgid.tls.msk.ru> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1372443465-22384-1-git-send-email-mjt@msgid.tls.msk.ru> References: <1372443465-22384-1-git-send-email-mjt@msgid.tls.msk.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 86.62.121.231 Cc: qemu-trivial@nongnu.org, Michael Tokarev , Gerd Hoffmann , qemu-devel@nongnu.org Subject: [Qemu-devel] [PULL 12/14] qemu-char: report udp backend errors X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Gerd Hoffmann Signed-off-by: Gerd Hoffmann Reviewed-by: Laszlo Ersek Signed-off-by: Michael Tokarev --- qemu-char.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qemu-char.c b/qemu-char.c index c097ca1..5a8f9c0 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2255,6 +2255,8 @@ static CharDriverState *qemu_chr_open_udp(QemuOpts *opts) fd = inet_dgram_opts(opts, &local_err); if (fd < 0) { + qerror_report_err(local_err); + error_free(local_err); return NULL; } return qemu_chr_open_udp_fd(fd);