From nobody Tue Dec 2 01:04:41 2025 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1263DDAB for ; Sat, 22 Nov 2025 13:45:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763819113; cv=none; b=C7m26wfz5y5yt+SesP6ZFlew1XgUO4bQ8LSGQ1kMdKbsvai17frYfsUWuuCfOVysaHTnKq/HQpEtuQ4CegWTwrFcGUbLVYzUrsM8/UhDz/YbJZcBLe1Ca3VhSEWoI+HhkQr+8S66ozOk0UcfFYeqgectb3IL/h7cji9LhBbkbrs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763819113; c=relaxed/simple; bh=6D34mo8Zax0/ctpdnetjcnhJqZuKL6lzMuZwjr4ACD0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XR+ZiOtzR2S5i/bENgBHeHmjU3CmdUXL+3s3OqNQThsvQWoyEym3M2jnh9Qp1fhB4PclpDlNLpeHbe+fC6d7MvNPOomouO210dXMMs3G6Kf0UgbWBggsYynovwMOPkuBokF+Di8k8+P2H5TMXIusZR0fc1JoCkJdQSSTwWYCBeo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=PnyAbf/K; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="PnyAbf/K" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1763819108; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Auw4lvN+/EUYDa1hMCORiiXiSdObuBm/XRqNiqMs598=; b=PnyAbf/KbDQg4Z1N8SynxbhTW2eLn50qj2YK1BbsK2bEoxR89l3QxeObf5ryQRSr9qE7Cn U4e9JUs6JQPatimZ42QudW3Z3tMypKyKhR0mqqSuqy5qCXeHvVSjdGJlJ9ewADV76Msdgp wMSV9MGli1wCjPFPw3TU928Fpu1wwXw= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-656-H-zJLUPqOfy7bVi8GFMDjg-1; Sat, 22 Nov 2025 08:45:06 -0500 X-MC-Unique: H-zJLUPqOfy7bVi8GFMDjg-1 X-Mimecast-MFC-AGG-ID: H-zJLUPqOfy7bVi8GFMDjg_1763819105 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 8F7CA1956050; Sat, 22 Nov 2025 13:45:05 +0000 (UTC) Received: from mrout-thinkpadp16vgen1.punetw6.csb (unknown [10.74.80.30]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 77C901956045; Sat, 22 Nov 2025 13:45:02 +0000 (UTC) From: Malaya Kumar Rout To: linux-kernel@vger.kernel.org Cc: mrout@redhat.com, malayarout91@gmail.com, Len Brown , Kaushlendra Kumar Subject: [PATCH] tools/power x86_energy_perf_policy: Fix format string in error message Date: Sat, 22 Nov 2025 19:14:54 +0530 Message-ID: <20251122134458.331241-1-mrout@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 Content-Type: text/plain; charset="utf-8" The error message in validate_cpu_selected_set() uses an incomplete format specifier "cpu%" instead of "cpu%d", resulting in the error message printing "Requested cpu% is not present" rather than showing the actual CPU number. Fix the format string to properly display the CPU number. Signed-off-by: Malaya Kumar Rout --- tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.= c b/tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c index 884a4c746f32..3e002f0bd65c 100644 --- a/tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c +++ b/tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c @@ -370,7 +370,7 @@ void validate_cpu_selected_set(void) for (cpu =3D 0; cpu <=3D max_cpu_num; ++cpu) { if (CPU_ISSET_S(cpu, cpu_setsize, cpu_selected_set)) if (!CPU_ISSET_S(cpu, cpu_setsize, cpu_present_set)) - errx(1, "Requested cpu% is not present", cpu); + errx(1, "Requested cpu%d is not present", cpu); } } =20 --=20 2.51.0