From nobody Mon Feb 9 00:20:30 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1600240706; cv=none; d=zohomail.com; s=zohoarc; b=eIUPnGbhCiIw3nWNvFrFc3Gea0/D3a0bI/uT1tsjkk9eeefZgm46A86KWNU/nFUUYVuHVL5Pt+Gu6vfdaOIi/ndGNkKYYBh5R3DzMCpx7ce3W6rJpIoet5RiCIkRZSejgnzzk8PTuuQmy0ONiDyTi1UYkVJ30IWQUH67ZqMmDhg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600240706; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=DqSNURj9Ai2V3TTZcOMHc1cLas/lBuSeSczufk46P5I=; b=lZXvIzJF7g0sxxqQp3VJ+Gl0DwFopcMP6TcHzDnm5Zc2Ru6qDJPccWYoZP7lXcRVAJ8GfzkilV14mixVp1UnNBFoy5jemD01QDcza7UOmpedAMRQHx0yKNUFefo00O2Js9hV01F7JkTOv1It1XvHfi1DU88Cqar5dEWBJmdHUuI= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1600240706632960.7810851518058; Wed, 16 Sep 2020 00:18:26 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-1-2H3oEOfPPVyDDHjL_FKyjw-1; Wed, 16 Sep 2020 03:18:21 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 36448101873E; Wed, 16 Sep 2020 07:18:06 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 12E3C60CCC; Wed, 16 Sep 2020 07:18:06 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id A175744A65; Wed, 16 Sep 2020 07:18:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 08G7I43q022915 for ; Wed, 16 Sep 2020 03:18:04 -0400 Received: by smtp.corp.redhat.com (Postfix) id 609C9F18D2; Wed, 16 Sep 2020 07:18:04 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5B7E3F11F9 for ; Wed, 16 Sep 2020 07:18:01 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1D2CE101A53F for ; Wed, 16 Sep 2020 07:18:01 +0000 (UTC) Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-422-4L0X4qyQPUiA5w-hyGw_tw-1; Wed, 16 Sep 2020 03:17:56 -0400 Received: by mail-wm1-f67.google.com with SMTP id x23so1695115wmi.3; Wed, 16 Sep 2020 00:17:55 -0700 (PDT) Received: from t440p.suse.asia (60-251-47-115.HINET-IP.hinet.net. [60.251.47.115]) by smtp.gmail.com with ESMTPSA id 9sm3721970wmf.7.2020.09.16.00.17.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 00:17:54 -0700 (PDT) X-MC-Unique: 2H3oEOfPPVyDDHjL_FKyjw-1 X-MC-Unique: 4L0X4qyQPUiA5w-hyGw_tw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DqSNURj9Ai2V3TTZcOMHc1cLas/lBuSeSczufk46P5I=; b=jpZvbw5/d3EP9OiG1oE8fsBcexOKQuIXoUwGRh3UVqJPrDDEtnCSP4pT06CNJIqJgB A/eGdeNujKV7Ju17Ie3yK0B0Wc+/xH24pXEhqI9JmeTxGoKETyj7P5HApVJF8l4cmM9E FdTZX3onk0C2bsoLcHcrLuvoxde1HHrGoVAnCaSfZJwqt/JP7S5+ErgjPvAXqswK3/Zn T04gDbPTeCTf1TCMxK9iSokaUr//3U5k/XYj8Vn3ilYuFDSOI3ZEZZHgyUus1JMiEEla szvrQUws932nFbnWExbBHmMkXUq1KgI94n9+B1nfoQkww+n3n3cRNVkJP3uC16xrcHOW YF/A== X-Gm-Message-State: AOAM5335p/dMh8bbONH7amhou9p7nPHIlzV2RQmI6b2P9wYdtsbhDZnt 8IHnzCKn4x9Z8eHRx6g9rDYDakxNtSRd+Q== X-Google-Smtp-Source: ABdhPJz/ldJ4eOIIA/2kUCoEZ21HKsvcNoVpiBGr+Vy7Q6TdYBqZJuByGajY81PM8VOgeB0UdI6eng== X-Received: by 2002:a1c:4e02:: with SMTP id g2mr2976770wmh.3.1600240674637; Wed, 16 Sep 2020 00:17:54 -0700 (PDT) From: morecache@gmail.com X-Google-Original-From: lma@suse.de To: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 1/4] virsh: net-port-create: log errors for non-existent xml file Date: Wed, 16 Sep 2020 15:17:34 +0800 Message-Id: <20200916071737.22938-2-lma@suse.de> In-Reply-To: <20200916071737.22938-1-lma@suse.de> References: <20200916071737.22938-1-lma@suse.de> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false; X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: libvir-list@redhat.com Cc: jtomko@redhat.com, Lin Ma , eskultet@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Lin Ma Signed-off-by: Lin Ma --- tools/virsh-network.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/virsh-network.c b/tools/virsh-network.c index 0351a93f19..24bc9107fc 100644 --- a/tools/virsh-network.c +++ b/tools/virsh-network.c @@ -1523,6 +1523,7 @@ cmdNetworkPortCreate(vshControl *ctl, const vshCmd *c= md) =20 ret =3D true; cleanup: + vshSaveLibvirtError(); VIR_FREE(buffer); if (port) virNetworkPortFree(port); --=20 2.26.0