From nobody Fri Oct 18 08:44:14 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 1720091992333120.08089624044499; Thu, 4 Jul 2024 04:19:52 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 3155E1571; Thu, 4 Jul 2024 07:19:51 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 1C5C715AC; Thu, 4 Jul 2024 07:19:10 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 6EEAF98B; Thu, 4 Jul 2024 07:19:04 -0400 (EDT) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lists.libvirt.org (Postfix) with ESMTP id E798E9FC for ; Thu, 4 Jul 2024 07:19:03 -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 31FF020B7004; Thu, 4 Jul 2024 04:19:03 -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 31FF020B7004 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1720091943; bh=msig3PTlbFGBKbPDIBOXhKy2E03gVwfQCzSx0V43hMo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J2jkPvOgMqjj8eTwRp32L6ImENtg4DQMN1zylCorXmaxOglxIt50GRqpY39l8vRFU En+gJ6QIg5f1OXBObLYR55MxajAo7BDgOyjAXSyjX9LCYutgYf1nsSDcQy67HcjJTb qCb3IXMFcUKWEBfavg9u7BZmlyxLpCHZHNCuIGQM= From: Purna Pavan Chandra To: devel@lists.libvirt.org Subject: [PATCH v2 1/8] ch: report response message instead of just code Date: Thu, 4 Jul 2024 11:18:55 +0000 Message-Id: <20240704111902.13237-2-paekkaladevi@linux.microsoft.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240704111902.13237-1-paekkaladevi@linux.microsoft.com> References: <20240704111902.13237-1-paekkaladevi@linux.microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: X4BXZJHMKRQFNQRH34QTXKQXOXUCOAKS X-Message-ID-Hash: X4BXZJHMKRQFNQRH34QTXKQXOXUCOAKS 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: kumarpraveen@linux.microsoft.com, paekkaladevi@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: 1720091993526100001 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