From nobody Mon Feb 9 07:26:56 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; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com 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 1653551456796387.79797203236797; Thu, 26 May 2022 00:50:56 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-117-HU0Z7AdZPMObr__s2EdEYA-1; Thu, 26 May 2022 03:50:54 -0400 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AD3D3100BABA; Thu, 26 May 2022 07:50:50 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 99614400F38; Thu, 26 May 2022 07:50:50 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 63114194EB8B; Thu, 26 May 2022 07:50:50 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id C26E91932125 for ; Wed, 25 May 2022 22:20:48 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id B415840E6A5F; Wed, 25 May 2022 22:20:48 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast02.extmail.prod.ext.rdu2.redhat.com [10.11.55.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AF50540CF8EF for ; Wed, 25 May 2022 22:20:48 +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 97AC8800B21 for ; Wed, 25 May 2022 22:20:48 +0000 (UTC) Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-79-v_4b48bqOtWUHbphUqj_wg-1; Wed, 25 May 2022 18:20:46 -0400 Received: by mail-qt1-f174.google.com with SMTP id w17so209711qtk.13 for ; Wed, 25 May 2022 15:20:46 -0700 (PDT) Received: from lagunitas.localdomain (66-63-33-3.realconnect.com. [66.63.33.3]) by smtp.gmail.com with ESMTPSA id g184-20020a37b6c1000000b006a41373b5a0sm94979qkf.96.2022.05.25.15.20.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 15:20:44 -0700 (PDT) X-MC-Unique: HU0Z7AdZPMObr__s2EdEYA-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: v_4b48bqOtWUHbphUqj_wg-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:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4zlcZp7NQOZm8XWbxJ+X4FG/GEt31lYF6YoqiD+yEsM=; b=oSoKEaKWU3acaIqFdmQcM1EuDAbdflStHnUJJPLzeQ42ZWIZEopaaoFkdSdHLOBgSV Y1ghmvdYJ2f8lWE/QeH17IXbTJPx9njMus4/xWz2LkZlOyNDme8+IXYHxKqVTme+lnrZ rYv4NSFxYqcDmtl/b8RvvVu3WrKlDvHShnRzqQNzyMhvIDPJsoZMAudRfjts72RVOn4V WVfvKHuXeuj8CWTFZnaXNFjwrvMY4SmbOsg+7ciV7gnvqAHfrPDb1uNv7yY9J2YVQc// kUhIdBlljTaOY7Iko6Ut0bGVLlkL9ej7LuJi1QC1Dj779GKMch1p/dUqiew+7xRIyFNk B4iQ== X-Gm-Message-State: AOAM531NwNRiexnDI/ZPrNuVYAsJVpOL8y9YTGV64jwbQWv6345gB8pd 9Iz0IlD9LDgeM5hAFsj0/9q7Q2lrTEVA3w== X-Google-Smtp-Source: ABdhPJyIWt6uBEBz/IhHrRRel8xezmszZGhjFc8S2qCsErq4fLOZUtiCMosMAELm7UHWWuszJHCPRA== X-Received: by 2002:ac8:5e0c:0:b0:2f9:145a:ddd with SMTP id h12-20020ac85e0c000000b002f9145a0dddmr24829685qtx.34.1653517245603; Wed, 25 May 2022 15:20:45 -0700 (PDT) From: Scott Davis X-Google-Original-From: Scott Davis To: libvir-list@redhat.com Subject: [libvirt PATCH 3/3] vircgroupv1: fix null string specifier argument in virCgroupV1ValidatePlacement Date: Wed, 25 May 2022 18:20:40 -0400 Message-Id: <6bac6da641a554dc4213c7accd9685442f2a8126.1653517208.git.scott.davis@starlab.io> In-Reply-To: References: 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.84 on 10.11.54.1 X-Mailman-Approved-At: Thu, 26 May 2022 07:50:45 +0000 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Scott Davis Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1653551457788100001 Detected by gcc 11 -Wformat-overflow: ../../src/util/vircgroupv1.c: In function =E2=80=98virCgroupV1ValidatePlace= ment=E2=80=99: ../../src/util/virerror.h:176:5: warning: =E2=80=98%s=E2=80=99 directive ar= gument is null [-Wformat-overflow=3D] 176 | virReportErrorHelper(VIR_FROM_THIS, code, __FILE__, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 177 | __FUNCTION__, __LINE__, __VA_ARGS__) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../src/util/vircgroupv1.c:411:13: note: in expansion of macro =E2=80=98v= irReportError=E2=80=99 411 | virReportError(VIR_ERR_INTERNAL_ERROR, | ^~~~~~~~~~~~~~ ../../src/util/vircgroupv1.c:412:80: note: format string is defined here 412 | _("Could not find placement for v1 contr= oller %s at %s"), | = ^~ Signed-off-by: Scott Davis --- src/util/vircgroupv1.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/util/vircgroupv1.c b/src/util/vircgroupv1.c index 96f36c3b4d..cbee08e931 100644 --- a/src/util/vircgroupv1.c +++ b/src/util/vircgroupv1.c @@ -409,9 +409,8 @@ virCgroupV1ValidatePlacement(virCgroup *group, =20 if (!group->legacy[i].placement) { virReportError(VIR_ERR_INTERNAL_ERROR, - _("Could not find placement for v1 controller %= s at %s"), - virCgroupV1ControllerTypeToString(i), - group->legacy[i].placement); + _("Could not find placement for v1 controller %= s"), + virCgroupV1ControllerTypeToString(i)); return -1; } =20 --=20 2.25.1