Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp228338rdb; Mon, 22 Jan 2024 18:58:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IF9bcL1t9vWYUSpg39kQSNJ9pfC7/u9VnglQcMJ8Z0nNwj8OVBE0jCRqasBQDWEK0AaXA1i X-Received: by 2002:a92:c64a:0:b0:361:932a:ad97 with SMTP id 10-20020a92c64a000000b00361932aad97mr3462541ill.43.1705978738435; Mon, 22 Jan 2024 18:58:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705978738; cv=pass; d=google.com; s=arc-20160816; b=HGBKuow3AFvgkLnDKJDltrB5PGhettPFQUKer40QAVDBXFKYPiLAznYx038TGLO/94 /vXlCKYFOlh1BZn/9FCNeFAFSdV5w47WYl7eUKOVBwKB6guGuVjSXYwfF6QWc6UePT1U PNiTTdlfzfjU/RuC64QX75CVbldtlNPXFM0HuzZBeZxaKyOWZ5mmJcooI+zNyPhDxYNb lsUflCqxDE8RGiPpYwovAyLzb589QPEhKjmjmy+/3NazpnRaO+OoXpINco0Asu8lUWT/ ZHVUrY3ntNvvDNVOu32JmqGttBROYV9rv31LDg3+1NIiAGMdZFKykWANGQwtgrUDZy3w ei6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=GQ1wTuSG+XU6/MyytwDQlKBpehV1N+PLqeiI0OWgSNk=; fh=q7hTlrhOoyF1/LngWPo3GuPxjSRwcZxUuOwMAMnsirI=; b=F7yjU2x8sDdk6dtq3kz2oe5dlLClOr06QxpnYh2q6osDfl62O2nAUragm/xuY1ZdQp p8z3vbE9iKuwpP8pieJCfEga/s88St29o3BuWxAtrjqHsiGS1GAvL19Ncfg0FKU8Hxz2 VG/PBicvQtZ0A/E7B09OVMFrIMQez1LaqFcFYdzl0QnPxIJRICtrk3ilST3/4JlvOkd4 nQ65aLbfVMSPAW3WhkUHDUZuodz7a8MxKXcKcxSlAeqKVftVV1sfI3Esrz9pZF6ohd8h 4iEF7Bs8+kie34qdiTSPacO87BnSDicDj5nMMzr2PX3bKRH/9VtFntT7r5GBvD1AnEHL D+YQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pKDYHnrz; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-34623-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34623-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id r12-20020a632b0c000000b005b8ef498e2bsi79640pgr.461.2024.01.22.18.58.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 18:58:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34623-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pKDYHnrz; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-34623-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34623-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4ACD5B216CE for ; Tue, 23 Jan 2024 02:35:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 420C86E2C7; Tue, 23 Jan 2024 02:03:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="pKDYHnrz" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 61FAD6DD10; Tue, 23 Jan 2024 02:03:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705975402; cv=none; b=tD6KrPf0MpTFcHmA9PYopD6OdHjma9P7WB/lVwS+KQ7OtyjPTLdCILKJOViJ7WeRYil+cUaw25SoGlvhlkOKoo8hTkNjk4rKZYRcl/2m4DkVOLxjwyFM5uQGqb96AlCFiRQEdiABGVTGdxR/ijVL4kUm7RKIZW7zgcHZWDhSXyI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705975402; c=relaxed/simple; bh=d3K/yKOImQ36E1YGVhkcYMk7iS/P9a3IEySAfHcpSiA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=AQ4d7/TLUfFe+DyiIi/dxDEWWkvhFl3/41rhyjaTAjrZ54a80sskZE+9jdZWf0l5ufvG7Uswudvlq96pwH334/TSq3JLzaSc5JgzOKuyvof/rzI8TCE51Yzvx1NXSUVB9q9EGoAI9tFSt0KdMOaT+FPKDSPsteWYnKev2DTDE/U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pKDYHnrz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D552C43394; Tue, 23 Jan 2024 02:03:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1705975402; bh=d3K/yKOImQ36E1YGVhkcYMk7iS/P9a3IEySAfHcpSiA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pKDYHnrzFif/5I6d3pFGZfqlN/5nt5DDMVUw9ZDuv/2vPEGChx794FiwBminqvB90 EOZ8xFK8+Nu8epYFzLS/Y5R0H0lqeDSefh3LWYca3ObvXBVTD9rm4aP2GqaWx4Q3Yp sZfYO85d4CNr8k40SAs+WMEG+NHLEBoSDIbRLtBw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Mark Brown , Jaroslav Kysela , Takashi Iwai , Shuah Khan , linux-sound@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Mirsad Todorovac , Takashi Iwai , Sasha Levin Subject: [PATCH 6.6 336/583] kselftest/alsa - conf: Stringify the printed errno in sysfs_get() Date: Mon, 22 Jan 2024 15:56:27 -0800 Message-ID: <20240122235822.316368588@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240122235812.238724226@linuxfoundation.org> References: <20240122235812.238724226@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mirsad Todorovac [ Upstream commit fd38dd6abda589a8771e7872e4dea28c99c6a6ef ] GCC 13.2.0 reported the warning of the print format specifier: conf.c: In function ‘sysfs_get’: conf.c:181:72: warning: format ‘%s’ expects argument of type ‘char *’, \ but argument 3 has type ‘int’ [-Wformat=] 181 | ksft_exit_fail_msg("sysfs: unable to read value '%s': %s\n", | ~^ | | | char * | %d The fix passes strerror(errno) as it was intended, like in the sibling error exit message. Fixes: aba51cd0949ae ("selftests: alsa - add PCM test") Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Shuah Khan Cc: linux-sound@vger.kernel.org Cc: linux-kselftest@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Mirsad Todorovac Acked-by: Mark Brown Link: https://lore.kernel.org/r/20240107173704.937824-5-mirsad.todorovac@alu.unizg.hr Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- tools/testing/selftests/alsa/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/alsa/conf.c b/tools/testing/selftests/alsa/conf.c index 2f1685a3eae1..ff09038fdce6 100644 --- a/tools/testing/selftests/alsa/conf.c +++ b/tools/testing/selftests/alsa/conf.c @@ -186,7 +186,7 @@ static char *sysfs_get(const char *sysfs_root, const char *id) close(fd); if (len < 0) ksft_exit_fail_msg("sysfs: unable to read value '%s': %s\n", - path, errno); + path, strerror(errno)); while (len > 0 && path[len-1] == '\n') len--; path[len] = '\0'; -- 2.43.0