From: Purna Pavan Chandra Date: Mon, 5 Aug 2024 14:40:53 +0000 (+0000) Subject: ch: report response message instead of just code X-Git-Tag: v10.7.0-rc1~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa66343ef90b7cec5f113fb558f3f00eb04bca32;p=thirdparty%2Flibvirt.git ch: report response message instead of just code 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 Reviewed-by: Michal Privoznik --- 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 != 204 && http_res != 200) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Unexpected response from CH: %1$d"), http_res); + _("Unexpected response from CH: %1$s"), response); return -1; } }