From nobody Sat Nov 9 17:05:19 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=linux.microsoft.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 172286891472165.24125564409758; Mon, 5 Aug 2024 07:41:54 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id A6643108B; Mon, 5 Aug 2024 10:41:53 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 9EFDAC5C; Mon, 5 Aug 2024 10:41:08 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 97C1EB31; Mon, 5 Aug 2024 10:41:04 -0400 (EDT) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lists.libvirt.org (Postfix) with ESMTP id 37FD2B47 for ; Mon, 5 Aug 2024 10:41:04 -0400 (EDT) Received: from paekkaladevi-dev-u22.gi4irqh5pfqublruu4yyku2wof.phxx.internal.cloudapp.net (unknown [20.125.125.171]) by linux.microsoft.com (Postfix) with ESMTPSA id D263920B7123; Mon, 5 Aug 2024 07:41:02 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D263920B7123 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1722868863; bh=msig3PTlbFGBKbPDIBOXhKy2E03gVwfQCzSx0V43hMo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eB5wwEjyjoq+vcfrtl0wIpAYCnOGhbR7Xw+OLkr07fOpXEwP/MOiGL2BTApkLlmac AYFl5wkBlKkHmUz8zOiL4pr3ecGE8eYiYMLTxRHF1+h+DJYm/sga2QgidVMPKE4SpK Q9YpaFxGqNhM4IPkLHcgJ+xcVb6UUSVNUkozBN/U= From: Purna Pavan Chandra To: devel@lists.libvirt.org Subject: [PATCH v3 1/9] ch: report response message instead of just code Date: Mon, 5 Aug 2024 14:40:53 +0000 Message-Id: <20240805144101.4864-2-paekkaladevi@linux.microsoft.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240805144101.4864-1-paekkaladevi@linux.microsoft.com> References: <20240805144101.4864-1-paekkaladevi@linux.microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: 3DEM6EHEC6XJVBQ6HIGOP3MIWIOFI4EV X-Message-ID-Hash: 3DEM6EHEC6XJVBQ6HIGOP3MIWIOFI4EV X-MailFrom: paekkaladevi@linux.microsoft.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: paekkaladevi@microsoft.com, kumarpraveen@linux.microsoft.com, liuwe@microsoft.com, prapal@linux.microsoft.com, Purna Pavan Chandra X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (Computed bodyhash is different from the expected one) X-ZM-MESSAGEID: 1722868915551116600 Content-Type: text/plain; charset="utf-8" The response message from CH for vm.add-net api will be more helpful in debugging. Hence, log the message instead of just response code. Signed-off-by: Purna Pavan Chandra --- src/ch/ch_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch/ch_process.c b/src/ch/ch_process.c index 48190a1273..6f99fec900 100644 --- a/src/ch/ch_process.c +++ b/src/ch/ch_process.c @@ -665,7 +665,7 @@ chProcessAddNetworkDevices(virCHDriver *driver, } if (http_res !=3D 204 && http_res !=3D 200) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Unexpected response from CH: %1$d"), http_re= s); + _("Unexpected response from CH: %1$s"), respons= e); return -1; } } --=20 2.34.1