From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 54DEB372662 for ; Fri, 22 May 2026 17:21:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779470519; cv=none; b=GT5JQmLKHDYUKLbBe5pEF5nMjqMy2mETANpapnaPfMv8wojb6cdholPUWenDeTXE3N/GY+oFk7Vr8+0LhvmF5WIyQnJV0FGSLO4+4zsnK4jLNM0pAEjIt8N6vZl2IxXllf6u5HQzN3rF62OI78FuKq7/cd+4QiR1/VIdkv++fg0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779470519; c=relaxed/simple; bh=8WpWeyEf3luxQ2wZAyHA8cYkuiddAjE911Qfhzsg90E=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=sNe+Rey+YmMAVewJ+YX0VkWh9EpG2hc2k3fDHz+pvgMOpcIL/KBPCWPrk7zRlT6M8Ej9s/2NjqTof4E+HIagxj1UgIzqTqXduxuxac9+C1jY2Vsw3ZQzLBcbO3L6PRitlQyafXEJrCK21oIFz/dvqk+Y5up4ralJS8cMncXcsUY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=ZTab3+fx; arc=none smtp.client-ip=209.85.210.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ZTab3+fx" Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-841127f960fso2015526b3a.1 for ; Fri, 22 May 2026 10:21:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1779470517; x=1780075317; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=Eefghdyx2WJstvVJS36TMv8XvfuF7zYMCYG6JFPt/vA=; b=ZTab3+fxYVOjUeT0BFEhIpBIt/06bclw8f4IMCC+rbzKWJOaT4coKgCjYRviPj4wt7 w9h2PbZK7aT28sLcqxjpw/5K1741Qe7o+rSujx8WtkWXpBhjKvcfedd8SHsZbcmITHK/ juaNNBiEnqJFzgH1aECvM1jyNEZCP1aRuluDYKqxQxpkOtO5MXIsmMtfwfQCZt79JVOg JlR467WObcwwBP/4lQ0RctIKnctJ+XCrzRvFgca8CpW+X7Rp8JGNH6SkP/CCA8MSZncX NK1zzfNvXzmHwyGtUMEgsFKfMdvaoH3sVPuS5ZrPbLunP5fIHXWZnS0ruxGOwdd99F2X f94Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779470517; x=1780075317; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Eefghdyx2WJstvVJS36TMv8XvfuF7zYMCYG6JFPt/vA=; b=EyRZg0cg2SbZ6lXbPNEbvwAf5vKjDU+Raf/U30x0/P+FgmKi8pMCVsG/5O+68q7Vd6 coHHFRBMMl7yIvszsWYuX0D7QCi9j99c62NTqHt0OloX5sudaGTqXSs/ieXjQOB0fK1x BxHhM/l0IL0ChshQFi7+taqIkZDYGPxLq1k183R/TI77SEodT2roSuiq9P+WaDP+pTaQ /x0hf9bb/6s2gYCFLpuUHRVhN3Cwg7CxDQXAICB6XLE5LWmdoroYQqTAOoLaqEM+RcUl u8IF7SnXzAfJaU2QGvjv+lxCDtHCO9VFUA3oozB8yoiKXpyBNLqyOAbQ0beigINQtQXl 8hJw== X-Forwarded-Encrypted: i=1; AFNElJ/KY3zXu9TzZTxCXfxK/Tvb2dL8VHrxy9G4qZ7D7+gqbVpqbV70uX1C3R4sAtbRLwTDwzBNW2S/us1BpMw=@vger.kernel.org X-Gm-Message-State: AOJu0YwMmYjwhieVKNPl63eoyqCE4+2qsiGuFlP6HQL9bLphXyBSoB0S RrLTIRs9K2fq97nq8tk7/FNS9SiKPZZpBO5z/8wXIoENPi6Fx9B5894LGVJDP5LilhLLPRIVTbh HqJY5ew== X-Received: from pfnc20.prod.google.com ([2002:aa7:81d4:0:b0:829:7f86:623]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:240b:b0:835:3f51:72f8 with SMTP id d2e1a72fcca58-8415f5db6c5mr4494289b3a.18.1779470517177; Fri, 22 May 2026 10:21:57 -0700 (PDT) Reply-To: Sean Christopherson Date: Fri, 22 May 2026 10:21:51 -0700 In-Reply-To: <20260522172151.3530267-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260522172151.3530267-1-seanjc@google.com> X-Mailer: git-send-email 2.54.0.794.g4f17f83d09-goog Message-ID: <20260522172151.3530267-4-seanjc@google.com> Subject: [PATCH v2 3/3] KVM: selftests: Remove unnecessary "%s" formatting of a constant string From: Sean Christopherson To: Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Zongyao Chen , Ackerley Tng , Sean Christopherson Content-Type: text/plain; charset="UTF-8" Drop superfluous %s formatting from assertions in the guest_memfd overlap testcases, as the string being printed doesn't require runtime formatting. No functional change intended. Reported-by: Ackerley Tng Signed-off-by: Sean Christopherson --- tools/testing/selftests/kvm/set_memory_region_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/kvm/set_memory_region_test.c b/tools/testing/selftests/kvm/set_memory_region_test.c index be99c1ff5a5a..e0800bfb11eb 100644 --- a/tools/testing/selftests/kvm/set_memory_region_test.c +++ b/tools/testing/selftests/kvm/set_memory_region_test.c @@ -554,7 +554,7 @@ static void test_add_overlapping_private_memory_regions(void) MEM_REGION_GPA * 2 - MEM_REGION_SIZE, MEM_REGION_SIZE * 2, 0, memfd, 0); - TEST_ASSERT(r == -1 && errno == EEXIST, "%s", + TEST_ASSERT(r == -1 && errno == EEXIST, "Overlapping guest_memfd() bindings should fail with EEXIST"); /* And now the back half of the other slot. */ @@ -562,7 +562,7 @@ static void test_add_overlapping_private_memory_regions(void) MEM_REGION_GPA * 2 + MEM_REGION_SIZE, MEM_REGION_SIZE * 2, 0, memfd, 0); - TEST_ASSERT(r == -1 && errno == EEXIST, "%s", + TEST_ASSERT(r == -1 && errno == EEXIST, "Overlapping guest_memfd() bindings should fail with EEXIST"); close(memfd); -- 2.54.0.794.g4f17f83d09-goog