From nobody Mon Feb 9 16:34:12 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1641304069; cv=none; d=zohomail.com; s=zohoarc; b=Kh7g1aVfrJxm7dJXyp/67uzVxxHm5yzKwf4JPfk286WHRXHy9pGAM9oEVA8PQkZbWVvTXfTMEB/LD/PKCf4NfMeULaNDFOFgv49Rm2picxRU9fl7Z81UNnWX3IWepNNLUsWoj61/vbKCsV+0EzytqbvJbADLMxTWjv9X6wModx4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1641304069; h=Content-Type:Content-Transfer-Encoding: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=vLkwx5sg5/4cI+o8XE5SoR9uWU2HL5nUx1P/JA+uS9k=; b=a4G7a6HZkBQQJ5bRfwdey8kADmghjtE5YWbpsLsDPGgO6mPCd/Jouder//Nd4MJoqLRKeTPUkyqUU8cutRRHTbJmBjl6cj/jHdRugCcjAHwh4JDPoULKO9y8psB50GHRrrisyW+lXD0kE850I7TDw5QVwWRgSvw8z1gfMybx/v8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1641304069599932.2014279604781; Tue, 4 Jan 2022 05:47:49 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-281-OmbK0d6UNLi5mYurKlgTxQ-1; Tue, 04 Jan 2022 08:47:45 -0500 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 D7BA51023F50; Tue, 4 Jan 2022 13:47:38 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B83577EBF7; Tue, 4 Jan 2022 13:47:38 +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 895E91802E2B; Tue, 4 Jan 2022 13:47:38 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 204DlNII019610 for ; Tue, 4 Jan 2022 08:47:23 -0500 Received: by smtp.corp.redhat.com (Postfix) id 076AF1121333; Tue, 4 Jan 2022 13:47:23 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast10.extmail.prod.ext.rdu2.redhat.com [10.11.55.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0398E1121330 for ; Tue, 4 Jan 2022 13:47:20 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id F02711C093CA for ; Tue, 4 Jan 2022 13:47:19 +0000 (UTC) Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-367-tp3QH87pP_yzVSBCUvKlDQ-1; Tue, 04 Jan 2022 08:47:18 -0500 Received: by mail-wr1-f72.google.com with SMTP id r9-20020adfb1c9000000b001a2981d9356so11759376wra.20 for ; Tue, 04 Jan 2022 05:47:18 -0800 (PST) Received: from wheatley.localdomain (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id c8sm40309424wmq.34.2022.01.04.05.47.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jan 2022 05:47:16 -0800 (PST) Received: from wheatley.redhat.com (wheatley.k8r.cz [127.0.0.1]) by wheatley.localdomain (Postfix) with ESMTP id 61EED2FEE73D for ; Tue, 4 Jan 2022 14:47:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1641304068; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=vLkwx5sg5/4cI+o8XE5SoR9uWU2HL5nUx1P/JA+uS9k=; b=VxomaU6eYmKEwIUqt6DELDPjYgPkCD4+TLxtca55SMdOnhe481fEs+PBCQxluxZX03fIS+ nt6u07iLDEWKoNARa9C1vLCsOHy15ZfTEtaVegELXQ9nM02Gc+CB5aV+XR5ObWGmaLM3EA CorsNd6qhIQH0BorXggQMRR6QoIG8kI= X-MC-Unique: OmbK0d6UNLi5mYurKlgTxQ-1 X-MC-Unique: tp3QH87pP_yzVSBCUvKlDQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vLkwx5sg5/4cI+o8XE5SoR9uWU2HL5nUx1P/JA+uS9k=; b=MMoYFGKp74Nu5P6YahH8pX6n0QROgPCjI8QBx/vUsmwnlbg8SdY7j9sxBcG7thJaQT EieiwRIMiR68v9lwiaIWblRKaMb8pdGyi+mtJDaXR15XCGDkmHAokn9h+t60yNEqqWNi MrgT/cuv8h4KfzsfB4sq2zPwohtlU2/19jSfj5YAhY5CE3AeAJNXDSksFTYZC8SZ9/HP 3fJ2mULw2JbBum+Rl7g4SmNJ6/07QlJaS4QwchbUpfgGmwmajBIeXmQpeFLcojJRjHyQ 5EcmNa/YW47voEzeP2vEsO7eSTmbsYd64mzNxYGuduLShCW/mnZKyvuDUGiBwPypf+TV IMUw== X-Gm-Message-State: AOAM532EGV89G0xuu1iBwmZIMBkhtxrJ2wjAVvPzz8OrywX3P59lfQhs WJZuat5LO/06xqF8EvlaMYSRR/23WAlsdtgk7SBtg83oKkMqKwq8+kB9VLWzzjOg+ynrLpZTeqW ISAGHAyetXeLfe9fiRf74B2tdb5HBovcwqJMwGPGhEdx+hrz6AdH61LvN4UkNThTa2QE257I= X-Received: by 2002:a05:6000:1085:: with SMTP id y5mr43869780wrw.696.1641304037665; Tue, 04 Jan 2022 05:47:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBmrZcaJLncb3QVMEMXsYQBRtDAxB0rGNPHSNp84ztfKf8Fo6N5424lQyslyMhNK9vRAL/cA== X-Received: by 2002:a05:6000:1085:: with SMTP id y5mr43869772wrw.696.1641304037468; Tue, 04 Jan 2022 05:47:17 -0800 (PST) From: Martin Kletzander To: libvir-list@redhat.com Subject: [PATCH 1/8] util: Report error in virLogParseDefaultPriority Date: Tue, 4 Jan 2022 14:47:05 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-loop: libvir-list@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 X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1641304071264100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Martin Kletzander Reviewed-by: Erik Skultety --- src/util/virlog.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/virlog.c b/src/util/virlog.c index ac35e36148c6..90d3d7c5cb53 100644 --- a/src/util/virlog.c +++ b/src/util/virlog.c @@ -1187,6 +1187,10 @@ virLogParseDefaultPriority(const char *priority) return VIR_LOG_WARN; else if (STREQ(priority, "4") || STREQ(priority, "error")) return VIR_LOG_ERROR; + + virReportError(VIR_ERR_INVALID_ARG, + _("Failed to set logging priority, argument '%s' is " + "invalid"), priority); return -1; } =20 --=20 2.34.1